aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-11-11 14:17:14 +0100
committerJosé Valim <jose.valim@gmail.com>2010-11-11 14:17:14 +0100
commit9c9f416d398c47dd2297fa5cc4025e0800d32212 (patch)
treefdc4f4774266cc6399ce35417839a246b4aed833 /activerecord
parent2651a87a33981953e2f7966c69dc87e370a7ff11 (diff)
downloadrails-9c9f416d398c47dd2297fa5cc4025e0800d32212.tar.gz
rails-9c9f416d398c47dd2297fa5cc4025e0800d32212.tar.bz2
rails-9c9f416d398c47dd2297fa5cc4025e0800d32212.zip
Allow AR Session Store to be renewed
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/session_store.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/session_store.rb b/activerecord/lib/active_record/session_store.rb
index a64c5f80c9..ba99800fb2 100644
--- a/activerecord/lib/active_record/session_store.rb
+++ b/activerecord/lib/active_record/session_store.rb
@@ -321,6 +321,7 @@ module ActiveRecord
if sid = current_session_id(env)
Base.silence do
get_session_model(env, sid).destroy
+ env[SESSION_RECORD_KEY] = nil
end
end