diff --git a/lib/simple_form/components/labels.rb b/lib/simple_form/components/labels.rb index e81379275..74a3ff47c 100644 --- a/lib/simple_form/components/labels.rb +++ b/lib/simple_form/components/labels.rb @@ -52,7 +52,7 @@ def required_label_text #:nodoc: 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 @@ def label_translation #:nodoc: end end end -end \ No newline at end of file +end