diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-08-31 13:39:06 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-08-31 13:39:06 -0500 |
commit | 6f40139b53b8e9ac805a15bb7c070d7bf9f6ce66 (patch) | |
tree | edc4912df2b182333758202cb02451a933c2727b | |
parent | cf9f361699d72b5b34a655f8940c024cba0f0e09 (diff) | |
download | rails-6f40139b53b8e9ac805a15bb7c070d7bf9f6ce66.tar.gz rails-6f40139b53b8e9ac805a15bb7c070d7bf9f6ce66.tar.bz2 rails-6f40139b53b8e9ac805a15bb7c070d7bf9f6ce66.zip |
SessionHash#update and SessionHash#delete are missing a call to load! [#3056 state:resolved]
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/session/abstract_store.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb b/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb index 03761b10bd..a8768633cc 100644 --- a/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb +++ b/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb @@ -45,6 +45,7 @@ module ActionDispatch ActiveSupport::Deprecation.warn('use replace instead', caller) replace({}) else + load! unless @loaded super(hash.stringify_keys) end end @@ -54,6 +55,7 @@ module ActionDispatch ActiveSupport::Deprecation.warn('use clear instead', caller) clear else + load! unless @loaded super(key.to_s) end end |