diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2011-06-05 12:03:04 +0100 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2011-06-05 12:03:31 +0100 |
commit | 0a9270417c8eb03891ec161622bcf81e5cb8af02 (patch) | |
tree | 434ba1ad1a3a2dcff1572050af9302603ecace87 /actionpack/lib | |
parent | 523c7c233052a3f3e1ac99adad4aad66f33a9364 (diff) | |
download | rails-0a9270417c8eb03891ec161622bcf81e5cb8af02.tar.gz rails-0a9270417c8eb03891ec161622bcf81e5cb8af02.tar.bz2 rails-0a9270417c8eb03891ec161622bcf81e5cb8af02.zip |
Ensure cookie keys are strings
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/cookies.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/cookies.rb b/actionpack/lib/action_dispatch/middleware/cookies.rb index c4a83fc8cb..01ffb91cf9 100644 --- a/actionpack/lib/action_dispatch/middleware/cookies.rb +++ b/actionpack/lib/action_dispatch/middleware/cookies.rb @@ -1,4 +1,5 @@ -require "active_support/core_ext/object/blank" +require 'active_support/core_ext/object/blank' +require 'active_support/core_ext/hash/keys' module ActionDispatch class Request @@ -129,7 +130,7 @@ module ActionDispatch end def update(other_hash) - @cookies.update other_hash + @cookies.update other_hash.stringify_keys self end |