Created
April 23, 2012 21:06
-
-
Save loe/2473863 to your computer and use it in GitHub Desktop.
Monkey Patch Rails 2.3 reset_session to work correctly (especially if you use something like Intercession)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ActionController::Request | |
def reset_session | |
by = session.instance_variable_get(:@by) | |
session.destroy if session and session.respond_to?(:destroy) | |
self.session = ActionController::Session::AbstractStore::SessionHash.new(by, @env) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment