diff options
author | brainopia <brainopia@evilmartians.com> | 2012-08-10 09:59:37 +0400 |
---|---|---|
committer | brainopia <brainopia@evilmartians.com> | 2012-08-10 09:59:37 +0400 |
commit | 058dc9a09680e9e2a5777c441b966a6f5e12cf82 (patch) | |
tree | f86eb3797ef1bdd9bba5e2e373d8012a80074101 /actionpack | |
parent | ae2383d90a9646e36c8b5d92801fba284ea62ec0 (diff) | |
download | rails-058dc9a09680e9e2a5777c441b966a6f5e12cf82.tar.gz rails-058dc9a09680e9e2a5777c441b966a6f5e12cf82.tar.bz2 rails-058dc9a09680e9e2a5777c441b966a6f5e12cf82.zip |
Revert "Revert "Merge pull request #6084 from brainopia/support_for_magic_domain_on_all_stores""
This reverts commit a48ea6800ef712440b08c551f8041feb35de8cb4.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/session/abstract_store.rb | 7 | ||||
-rw-r--r-- | actionpack/test/activerecord/active_record_store_test.rb | 7 |
2 files changed, 14 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 f75b4d4d04..c04fee21dc 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 diff --git a/actionpack/test/activerecord/active_record_store_test.rb b/actionpack/test/activerecord/active_record_store_test.rb index 768ac713ca..6dc2eaff54 100644 --- a/actionpack/test/activerecord/active_record_store_test.rb +++ b/actionpack/test/activerecord/active_record_store_test.rb @@ -256,6 +256,13 @@ class ActiveRecordStoreTest < ActionDispatch::IntegrationTest end end + def test_session_store_with_all_domains + with_test_route_set(:domain => :all) do + get '/set_session_value' + assert_response :success + end + end + private def with_test_route_set(options = {}) |