Skip to content

Commit

Permalink
fix bug with Rails 2.3.14 (#destroy needs to be implemented)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkraemer committed Sep 10, 2011
1 parent 4f6a814 commit 99324c6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/smart_session_store.rb
Expand Up @@ -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__
Expand Down

0 comments on commit 99324c6

Please sign in to comment.