aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/template/handlers/raw.rb
diff options
context:
space:
mode:
authorbrainopia <brainopia@evilmartians.com>2015-04-02 02:11:07 +0300
committerbrainopia <brainopia@evilmartians.com>2015-04-02 02:15:07 +0300
commit58d75fd8112d27c0f4bdd004e10b4f4e8b350595 (patch)
tree2708205fb412b55f1dea947da22aaed47c1fd485 /actionview/lib/action_view/template/handlers/raw.rb
parentcdac52e124769909b6cb5fce2c4d00e09d21e059 (diff)
downloadrails-58d75fd8112d27c0f4bdd004e10b4f4e8b350595.tar.gz
rails-58d75fd8112d27c0f4bdd004e10b4f4e8b350595.tar.bz2
rails-58d75fd8112d27c0f4bdd004e10b4f4e8b350595.zip
Freeze static arguments for gsub
Diffstat (limited to 'actionview/lib/action_view/template/handlers/raw.rb')
-rw-r--r--actionview/lib/action_view/template/handlers/raw.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/template/handlers/raw.rb b/actionview/lib/action_view/template/handlers/raw.rb
index 0c0d1fffcb..b08fb0870f 100644
--- a/actionview/lib/action_view/template/handlers/raw.rb
+++ b/actionview/lib/action_view/template/handlers/raw.rb
@@ -2,7 +2,7 @@ module ActionView
module Template::Handlers
class Raw
def call(template)
- escaped = template.source.gsub(':', '\:')
+ escaped = template.source.gsub(':'.freeze, '\:'.freeze)
'%q:' + escaped + ':;'
end