Revert nested hash indifference, swap delete order

Upstream doesnt support nested hashes having indifferent access, we
should stay consistent. Swap order for returned value in session hash.
This commit is contained in:
Greg Ose
2014-05-07 14:27:52 -05:00
parent 364b534815
commit 9070fbcffe
2 changed files with 2 additions and 7 deletions

View File

@@ -95,12 +95,7 @@ module ActionController #:nodoc:
end
def [](k)
v = super(k.to_s)
if v.is_a? Hash
v.with_indifferent_access
else
v
end
super(k.to_s)
end
def delete(k)

View File

@@ -89,7 +89,7 @@ module ActionController
load_for_write!
value = super(key)
string_value = super(key.to_s)
value || string_value
string_value || value
end
def data