diff options
author | Josh Jordan <josh.jordan@gmail.com> | 2013-11-11 10:25:24 -0500 |
---|---|---|
committer | Josh Jordan <josh.jordan@gmail.com> | 2013-11-14 23:51:40 -0500 |
commit | ea6640d05d2cc5a2c596719aa245814b540acd62 (patch) | |
tree | dcc44dfe5f3552f156b54b1b51314f2088d4eb45 | |
parent | aa7fdfb859d8a73f58460a7aba7174a47b5101d5 (diff) | |
download | rails-ea6640d05d2cc5a2c596719aa245814b540acd62.tar.gz rails-ea6640d05d2cc5a2c596719aa245814b540acd62.tar.bz2 rails-ea6640d05d2cc5a2c596719aa245814b540acd62.zip |
Allocate one less object using html_safe during content_tag construction
-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) |