From ea6640d05d2cc5a2c596719aa245814b540acd62 Mon Sep 17 00:00:00 2001
From: Josh Jordan <josh.jordan@gmail.com>
Date: Mon, 11 Nov 2013 10:25:24 -0500
Subject: Allocate one less object using html_safe during content_tag
 construction

---
 actionview/lib/action_view/helpers/tag_helper.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'actionview')

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)
-- 
cgit v1.2.3