mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
the freeze trick does nothing on arrays used as hash keys.
This commit is contained in:
@@ -101,13 +101,12 @@ module ActionView
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user