提交 f6f4bed3 编写于 作者: R Rafael Mendonça França

Merge pull request #12853 from joshjordan/master

Allocate one less object using html_safe during content_tag construction
...@@ -151,7 +151,7 @@ def tag_options(options, escape = true) ...@@ -151,7 +151,7 @@ def tag_options(options, escape = true)
attrs << tag_option(key, value, escape) attrs << tag_option(key, value, escape)
end end
end end
" #{attrs.sort! * ' '}".html_safe unless attrs.empty? " #{attrs.sort! * ' '}" unless attrs.empty?
end end
def data_tag_option(key, value, escape) def data_tag_option(key, value, escape)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册