mirror of
https://github.com/github/rails.git
synced 2026-01-09 14:48:08 -05:00
support indifferent access for hashes stored within FlashHash
This commit is contained in:
@@ -95,7 +95,12 @@ module ActionController #:nodoc:
|
||||
end
|
||||
|
||||
def [](k)
|
||||
super(k.to_s)
|
||||
v = super(k.to_s)
|
||||
if v.is_a? Hash
|
||||
v.with_indifferent_access
|
||||
else
|
||||
v
|
||||
end
|
||||
end
|
||||
|
||||
def delete(k)
|
||||
|
||||
Reference in New Issue
Block a user