Fix label translation comment

This commit is contained in:
Carlos Antonio da Silva 2010-12-08 17:30:53 -02:00
parent dc46c17c22
commit be8137c7a7
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ module SimpleForm
attribute_required? ? self.class.translate_required_html.dup : ''
end
# First check human attribute name and then labels.
# First check labels translation and then human attribute name.
def label_translation #:nodoc:
translate(:labels) || if object.class.respond_to?(:human_attribute_name)
object.class.human_attribute_name(reflection_or_attribute_name.to_s)
@ -62,4 +62,4 @@ module SimpleForm
end
end
end
end
end