Class: ActionDispatch::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/devise/rails/warden_compat.rb

Instance Method Summary collapse

Instance Method Details

#reset_sessionObject



103
104
105
106
107
# File 'lib/devise/rails/warden_compat.rb', line 103

def reset_session
  session.destroy if session && session.respond_to?(:destroy)
  self.session = {}
  @env['action_dispatch.request.flash_hash'] = nil
end