Module: Warden::Mixins::Common

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

Instance Method Summary collapse

Instance Method Details

#cookiesObject



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

def cookies
  request.cookie_jar
end

#requestObject



4
5
6
# File 'lib/devise/rails/warden_compat.rb', line 4

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

#reset_session!Object



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

def reset_session!
  request.reset_session
end