Skip to content

Commit

Permalink
Revert "Revert "Merge pull request #6084 from brainopia/support_for_m…
Browse files Browse the repository at this point in the history
…agic_domain_on_all_stores""

This reverts commit a48ea68.
  • Loading branch information
brainopia committed Aug 10, 2012
1 parent ae2383d commit 058dc9a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ def stale_session_check!
class AbstractStore < Rack::Session::Abstract::ID class AbstractStore < Rack::Session::Abstract::ID
include Compatibility include Compatibility
include StaleSessionCheck include StaleSessionCheck

private

def set_cookie(env, session_id, cookie)
request = ActionDispatch::Request.new(env)
request.cookie_jar[key] = cookie
end
end end
end end
end end
7 changes: 7 additions & 0 deletions actionpack/test/activerecord/active_record_store_test.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -256,6 +256,13 @@ def test_incoming_invalid_session_id_via_parameter_should_be_ignored
end end
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 private


def with_test_route_set(options = {}) def with_test_route_set(options = {})
Expand Down

0 comments on commit 058dc9a

Please sign in to comment.