Skip to content

Commit

Permalink
label_text for wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
NOX73 committed Jul 12, 2012
1 parent ddf2168 commit bd241ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/simple_form/components/labels.rb
Expand Up @@ -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
Expand Down

0 comments on commit bd241ff

Please sign in to comment.