Class: ActionController::Request

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

Instance Method Summary collapse

Instance Method Details

#reset_sessionObject



28
29
30
31
# File 'lib/devise/rails/warden_compat.rb', line 28

def reset_session
  session.destroy if session && session.respond_to?(:destroy)
  self.session = {}
end