Created
September 9, 2014 01:11
-
-
Save forced-request/7656816db64f46689ce8 to your computer and use it in GitHub Desktop.
reset_session
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
def reset_session | |
session.destroy if session && session.respond_to?(:destroy) | |
self.session = {} | |
@env['action_dispatch.request.flash_hash'] = nil | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment