From be8137c7a735d0264b441d4506e3ff28d0ae03c8 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Wed, 8 Dec 2010 17:30:53 -0200 Subject: [PATCH] Fix label translation comment --- lib/simple_form/components/labels.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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