diff options
author | José Valim <jose.valim@gmail.com> | 2010-08-26 16:25:53 -0300 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-08-26 16:25:53 -0300 |
commit | 818858ac1dbae947f2df0aa61bd4053c518ec909 (patch) | |
tree | c1bcaf8b7ff02f77b05ac790c2b4d5cde3e03514 /actionpack | |
parent | ca1f3a5596bbb37833f4e924f409c802e93b7ca6 (diff) | |
download | rails-818858ac1dbae947f2df0aa61bd4053c518ec909.tar.gz rails-818858ac1dbae947f2df0aa61bd4053c518ec909.tar.bz2 rails-818858ac1dbae947f2df0aa61bd4053c518ec909.zip |
Do not modify frozen strings in place.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_view/template.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/template.rb b/actionpack/lib/action_view/template.rb index 7decec24ab..b9d5b4e70f 100644 --- a/actionpack/lib/action_view/template.rb +++ b/actionpack/lib/action_view/template.rb @@ -119,7 +119,7 @@ module ActionView @formats = Array.wrap(format).map(&:to_sym) @virtual_path = details[:virtual_path] - @virtual_path.sub!(".#{format}", "") if @virtual_path + @virtual_path.sub(".#{format}", "") if @virtual_path end def render(view, locals, &block) |