Permalink
Browse files

the freeze trick does nothing on arrays used as hash keys.

  • Loading branch information...
1 parent 233696a commit 1fbc4704df96a8a7e526a3ce4c8110c8e5e26a18 @tenderlove tenderlove committed Aug 9, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 actionpack/lib/action_view/template/resolver.rb
@@ -101,13 +101,12 @@ def decorate(templates, path_info, details, locals) #:nodoc:
if :symbol.respond_to?("<=>")
def sort_locals(locals) #:nodoc:
- locals.sort.freeze
+ locals.sort
end
else
def sort_locals(locals) #:nodoc:
locals = locals.map{ |l| l.to_s }
locals.sort!
- locals.freeze
end
end
end

0 comments on commit 1fbc470

Please sign in to comment.