aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-11-15 09:45:14 -0800
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-11-15 09:45:14 -0800
commitf6f4bed34d7f654e0dde8b2cd369066d0857e91c (patch)
treed9a600d3966ce316e7c63fd92d581cb2675d5435 /actionview
parent72551c29f26f757af72b0fefd689244fb6366c74 (diff)
parentea6640d05d2cc5a2c596719aa245814b540acd62 (diff)
downloadrails-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')
-rw-r--r--actionview/lib/action_view/helpers/tag_helper.rb2
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)