Skip to content

Commit

Permalink
No need of html_safe here
Browse files Browse the repository at this point in the history
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 committed Jan 4, 2012
1 parent 4b81007 commit 63f48b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/helpers/form_helper.rb
Expand Up @@ -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 = {})
Expand Down

0 comments on commit 63f48b1

Please sign in to comment.