Merge pull request #12853 from joshjordan/master
Allocate one less object using html_safe during content_tag construction
This commit is contained in:
commit
f6f4bed34d
@ -151,7 +151,7 @@ def tag_options(options, escape = true)
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user