support indifferent access for hashes stored within FlashHash

This commit is contained in:
Greg Ose
2014-04-30 13:18:28 -05:00
parent 14da203564
commit 364b534815

View File

@@ -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)