Module: Warden::Mixins::Common

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

Instance Method Summary collapse

Instance Method Details

#cookiesObject



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

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



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

def reset_session!
  request.reset_session
end