Permalink
Browse files

label_text for wrapper

  • Loading branch information...
1 parent ddf2168 commit bd241ff111dfc502f92750df702c15754245babd @NOX73 committed Jul 12, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/simple_form/components/labels.rb
@@ -30,7 +30,8 @@ def label
end
def label_text
- SimpleForm.label_text.call(raw_label_text, required_label_text).strip.html_safe
+ lt = options[:label_text] || SimpleForm.label_text
+ lt.call(raw_label_text, required_label_text).strip.html_safe
end
def label_target

0 comments on commit bd241ff

Please sign in to comment.