diff options
author | brainopia <brainopia@evilmartians.com> | 2012-04-30 04:14:51 +0400 |
---|---|---|
committer | brainopia <brainopia@evilmartians.com> | 2012-04-30 04:14:51 +0400 |
commit | 41219386268f670399a905c11e28b1ef76939ee1 (patch) | |
tree | 243e55e8cd66c773be3ad840fb833966bb5d80f3 /actionpack/lib/action_dispatch/middleware | |
parent | 0b019cc3b821eb362ef3f75f4bc16727c1f23fa6 (diff) | |
download | rails-41219386268f670399a905c11e28b1ef76939ee1.tar.gz rails-41219386268f670399a905c11e28b1ef76939ee1.tar.bz2 rails-41219386268f670399a905c11e28b1ef76939ee1.zip |
Support cookie jar options for all cookie stores
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/session/abstract_store.rb | 7 |
1 files changed, 7 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 6a8e690d18..45a00b5056 100644 --- a/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb +++ b/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb @@ -74,6 +74,13 @@ module ActionDispatch class AbstractStore < Rack::Session::Abstract::ID include Compatibility include StaleSessionCheck + + private + + def set_cookie(env, session_id, cookie) + request = ActionDispatch::Request.new(env) + request.cookie_jar[key] = cookie + end end end end |