Sha256: c9bd7cfa02e53bdb526e4d90d2b85b437873cb43db42053821130bed1fd940cd

Contents?: true

Size: 757 Bytes

Versions: 28

Compression:

Stored size: 757 Bytes

Contents

require 'clearance/authentication'
require 'clearance/authorization'

module Clearance
  # 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
  #
  module Controller
    extend ActiveSupport::Concern

    include Clearance::Authentication
    include Clearance::Authorization
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
clearance-2.9.3 lib/clearance/controller.rb
clearance-2.9.2 lib/clearance/controller.rb
clearance-2.9.1 lib/clearance/controller.rb
clearance-2.9.0 lib/clearance/controller.rb
clearance-2.8.0 lib/clearance/controller.rb
clearance-2.7.2 lib/clearance/controller.rb
clearance-2.7.0 lib/clearance/controller.rb
clearance-2.6.2 lib/clearance/controller.rb
clearance-2.6.1 lib/clearance/controller.rb
clearance-2.6.0 lib/clearance/controller.rb
clearance-2.5.0 lib/clearance/controller.rb
clearance-2.4.0 lib/clearance/controller.rb
clearance-2.3.1 lib/clearance/controller.rb
clearance-2.3.0 lib/clearance/controller.rb
clearance-2.2.1 lib/clearance/controller.rb
clearance-2.2.0 lib/clearance/controller.rb
clearance-2.1.0 lib/clearance/controller.rb
clearance-2.0.0 lib/clearance/controller.rb
clearance-2.0.0.beta2 lib/clearance/controller.rb
clearance-2.0.0.beta1 lib/clearance/controller.rb