Module: Clearance::Controller

Extended by:
ActiveSupport::Concern
Includes:
Authentication, Authorization
Defined in:
lib/clearance/controller.rb

Overview

Adds clearance controller helpers to the controller it is mixed into.

This exposes clearance controller and helper methods such as current_user. See Authentication and Authorization documentation for complete documentation on the methods.

The clearance:install generator automatically adds this mixin to ApplicationController, which is the recommended configuration.

class ApplicationController < ActionController::Base
  include Clearance::Controller
end

Method Summary

Methods included from Authorization

#deny_access, #require_login, #url_after_denied_access_when_signed_in, #url_after_denied_access_when_signed_out

Methods included from Authentication

#authenticate, #current_user, #handle_unverified_request, #sign_in, #sign_out, #signed_in?, #signed_out?