Module: RailsWarden::Mixins::ControllerOnlyMethods

Defined in:
lib/rails_warden/controller_mixin.rb

Overview

Helper Methods

Instance Method Summary collapse

Instance Method Details

#authenticate(*args) ⇒ Object

Proxy to the authenticate method on warden :api: public



40
41
42
# File 'lib/rails_warden/controller_mixin.rb', line 40

def authenticate(*args)
  warden.authenticate(*args)
end

#authenticate!(*args) ⇒ Object

Proxy to the authenticate method on warden :api: public



46
47
48
# File 'lib/rails_warden/controller_mixin.rb', line 46

def authenticate!(*args)
  warden.authenticate!(*args)
end

#logout(*args) ⇒ Object

Logout the current user :api: public



33
34
35
36
# File 'lib/rails_warden/controller_mixin.rb', line 33

def logout(*args)
  warden._session.inspect  # Without this inspect here.  The session does not clear :|
  warden.logout(*args)
end