Permalink
Browse files

use param instead of block in label_tag method

  • Loading branch information...
1 parent 5551e64 commit 8f0b25f15c73beb9f3a9d6bd09b7ea77d3a57f0f @nashby committed Nov 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/simple_form/components/labels.rb
@@ -22,7 +22,7 @@ def translate_required_mark
end
def label
- return template.label_tag(nil, label_html_options) { label_text } if [:check_boxes, :radio].include?(input_type)
+ return template.label_tag(nil, label_text, label_html_options) if [:check_boxes, :radio].include?(input_type)
@builder.label(label_target, label_text, label_html_options)
end

0 comments on commit 8f0b25f

Please sign in to comment.