Permalink
Browse files

No need of html_safe here

tag helper always return a html safe string and concat two html safe
strings always return a html safe string
  • Loading branch information...
Rafael Mendonça França
Rafael Mendonça França committed Jan 4, 2012
1 parent 4b81007 commit 63f48b113a31c8ef523293ff6d9bc8c5c2261aef
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/form_helper.rb
@@ -1093,7 +1093,7 @@ def to_check_box_tag(options = {}, checked_value = "1", unchecked_value = "0")
end
hidden = tag("input", "name" => options["name"], "type" => "hidden", "value" => options['disabled'] && checked ? checked_value : unchecked_value)
checkbox = tag("input", options)
- (hidden + checkbox).html_safe
+ hidden + checkbox
end
def to_boolean_select_tag(options = {})

0 comments on commit 63f48b1

Please sign in to comment.