diff options
author | Rafael Mendonça França <rafael.franca@plataformatec.com.br> | 2012-01-04 03:01:23 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafael.franca@plataformatec.com.br> | 2012-01-04 03:01:23 -0300 |
commit | 63f48b113a31c8ef523293ff6d9bc8c5c2261aef (patch) | |
tree | 90dd10b1f75999b261ae674a88dd1409c7d89438 /actionpack/lib | |
parent | 4b81007acf33527522aa41965e4a476602d2dd4d (diff) | |
download | rails-63f48b113a31c8ef523293ff6d9bc8c5c2261aef.tar.gz rails-63f48b113a31c8ef523293ff6d9bc8c5c2261aef.tar.bz2 rails-63f48b113a31c8ef523293ff6d9bc8c5c2261aef.zip |
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
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index d46ee4faef..1e4bebeee7 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -1093,7 +1093,7 @@ module ActionView 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 = {}) |