Module: Warden::Mixins::Common

Defined in:
lib/devise/rails/warden_compat.rb

Instance Method Summary collapse

Instance Method Details

#cookiesObject



11
12
13
# File 'lib/devise/rails/warden_compat.rb', line 11

def cookies
  request.cookie_jar
end

#requestObject



2
3
4
# File 'lib/devise/rails/warden_compat.rb', line 2

def request
  @request ||= ActionDispatch::Request.new(env)
end

#reset_session!Object

This is called internally by Warden on logout



7
8
9
# File 'lib/devise/rails/warden_compat.rb', line 7

def reset_session!
  request.reset_session
end