diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-01 15:04:33 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-07-01 15:17:19 -0700 |
commit | f8720a04d129668c7554c1a7270fba5418510b47 (patch) | |
tree | 0033e615acf905fdff3b487e904a42d5716eb24d /actionpack/lib/action_dispatch | |
parent | 4a0c514eb48b8e5d4ceffb4817661c182c2368a3 (diff) | |
download | rails-f8720a04d129668c7554c1a7270fba5418510b47.tar.gz rails-f8720a04d129668c7554c1a7270fba5418510b47.tar.bz2 rails-f8720a04d129668c7554c1a7270fba5418510b47.zip |
porting session.clear fix to master branch. [#5030 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/session/abstract_store.rb | 5 |
1 files changed, 5 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 08bc80dbc2..64f4d1d532 100644 --- a/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb +++ b/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb @@ -64,6 +64,11 @@ module ActionDispatch super(key.to_s, value) end + def clear + load_for_write! + super + end + def to_hash load_for_read! h = {}.replace(self) |