From 99324c69f11a4be94517be44adf99d91d52d7b43 Mon Sep 17 00:00:00 2001 From: Jens Kraemer Date: Sat, 10 Sep 2011 21:41:26 +0200 Subject: [PATCH] fix bug with Rails 2.3.14 (#destroy needs to be implemented) --- lib/smart_session_store.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/smart_session_store.rb b/lib/smart_session_store.rb index 018d588..cd6afc3 100755 --- a/lib/smart_session_store.rb +++ b/lib/smart_session_store.rb @@ -57,7 +57,13 @@ def find_session(id) @@session_class.find_session(id) || @@session_class.create_session(id, marshalize({})) end - + + # Rails 2.3.14 needs this + def destroy(env) + if (sid = current_session_id(env)).present? && session = find_session(sid) + session.destroy + end + end end __END__