diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-11-15 09:45:14 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-11-15 09:45:14 -0800 |
commit | f6f4bed34d7f654e0dde8b2cd369066d0857e91c (patch) | |
tree | d9a600d3966ce316e7c63fd92d581cb2675d5435 /actionview/lib | |
parent | 72551c29f26f757af72b0fefd689244fb6366c74 (diff) | |
parent | ea6640d05d2cc5a2c596719aa245814b540acd62 (diff) | |
download | rails-f6f4bed34d7f654e0dde8b2cd369066d0857e91c.tar.gz rails-f6f4bed34d7f654e0dde8b2cd369066d0857e91c.tar.bz2 rails-f6f4bed34d7f654e0dde8b2cd369066d0857e91c.zip |
Merge pull request #12853 from joshjordan/master
Allocate one less object using html_safe during content_tag construction
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/helpers/tag_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/tag_helper.rb b/actionview/lib/action_view/helpers/tag_helper.rb index 11e41ec056..3528381781 100644 --- a/actionview/lib/action_view/helpers/tag_helper.rb +++ b/actionview/lib/action_view/helpers/tag_helper.rb @@ -151,7 +151,7 @@ module ActionView attrs << tag_option(key, value, escape) end end - " #{attrs.sort! * ' '}".html_safe unless attrs.empty? + " #{attrs.sort! * ' '}" unless attrs.empty? end def data_tag_option(key, value, escape) |