Files

RailsWarden::Mixins::ControllerOnlyMethods

Public Instance Methods

authenticate(*args) click to toggle source

Proxy to the authenticate method on warden :api: public

# File lib/rails_warden/controller_mixin.rb, line 40
def authenticate(*args)
  warden.authenticate(*args)
end
authenticate!(*args) click to toggle source

Proxy to the authenticate method on warden :api: public

# File lib/rails_warden/controller_mixin.rb, line 46
def authenticate!(*args)
  defaults = {:action => RailsWarden.unauthenticated_action}
  if args.last.is_a? Hash
    args[-1] = defaults.merge(args.last)
  else
    args << defaults
  end
  warden.authenticate!(*args)
end
logout(*args) click to toggle source

Logout the current user :api: public

# File lib/rails_warden/controller_mixin.rb, line 33
def logout(*args)
  warden.raw_session.inspect  # Without this inspect here.  The session does not clear :|
  warden.logout(*args)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.