diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-06-28 16:00:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-28 16:00:38 +0200 |
commit | 88cb4eedfd0297cfb2e1d0706ac7f59aa0247874 (patch) | |
tree | c3a78230a86aefcdb0561da1422db2669ba1e468 /actionview | |
parent | 13a5cc33410bd26be8e7669259b60021fba7012a (diff) | |
parent | 6f4719d91a000d7054862796b79a51f8fc548f1a (diff) | |
download | rails-88cb4eedfd0297cfb2e1d0706ac7f59aa0247874.tar.gz rails-88cb4eedfd0297cfb2e1d0706ac7f59aa0247874.tar.bz2 rails-88cb4eedfd0297cfb2e1d0706ac7f59aa0247874.zip |
Merge pull request #25554 from vipulnsward/25543-freeze-string
Freeze string for default content for tag_strings, which later goes on to build a new one
Diffstat (limited to 'actionview')
-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 09923be568..57bfa01568 100644 --- a/actionview/lib/action_view/helpers/tag_helper.rb +++ b/actionview/lib/action_view/helpers/tag_helper.rb @@ -41,7 +41,7 @@ module ActionView if VOID_ELEMENTS.include?(name) && content.nil? "<#{name.to_s.dasherize}#{tag_options(options, escape_attributes)}>".html_safe else - content_tag_string(name.to_s.dasherize, content || '', options, escape_attributes) + content_tag_string(name.to_s.dasherize, content || ''.freeze, options, escape_attributes) end end |