aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-03-24 11:20:43 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-03-26 20:02:43 -0300
commit5ad9a8e874db9e210123fde7a542cd2a05c6abd3 (patch)
treed263715ed9c9fe1af20850209ce29b002ab150bf /actionpack
parent47db156d4273fbc79d20b7461e8419e13a796445 (diff)
downloadrails-5ad9a8e874db9e210123fde7a542cd2a05c6abd3.tar.gz
rails-5ad9a8e874db9e210123fde7a542cd2a05c6abd3.tar.bz2
rails-5ad9a8e874db9e210123fde7a542cd2a05c6abd3.zip
Return the same session data object when setting session id
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/middleware/session/cookie_store.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/session/cookie_store.rb b/actionpack/lib/action_dispatch/middleware/session/cookie_store.rb
index 8ebf870b95..a4866f5a8f 100644
--- a/actionpack/lib/action_dispatch/middleware/session/cookie_store.rb
+++ b/actionpack/lib/action_dispatch/middleware/session/cookie_store.rb
@@ -59,7 +59,8 @@ module ActionDispatch
end
def set_session(env, sid, session_data, options)
- session_data.merge("session_id" => sid)
+ session_data["session_id"] = sid
+ session_data
end
def set_cookie(env, session_id, cookie)