Skip to content
Browse files

Do not modify frozen strings in place.

  • Loading branch information...
1 parent ca1f3a5 commit 818858ac1dbae947f2df0aa61bd4053c518ec909 @josevalim josevalim committed Aug 26, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/template.rb
View
2 actionpack/lib/action_view/template.rb
@@ -119,7 +119,7 @@ def initialize(source, identifier, handler, details)
@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
@mitchellh
mitchellh added a note Aug 27, 2010

Jose, I think you're missing a @virtual_path = just before this line.

@josevalim
Ruby on Rails member
josevalim added a note Aug 27, 2010

Yeah, already fixed that in a later commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
end
def render(view, locals, &block)

0 comments on commit 818858a

Please sign in to comment.
Something went wrong with that request. Please try again.