Sha256: 057715a381df1d4c0f02559ed6382d15579a04c3bf27cf8b67cd54207a8ea425
Contents?: true
Size: 756 Bytes
Versions: 4
Compression:
Stored size: 756 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 < ApplicationController # include Clearance::Controller # end # module Controller extend ActiveSupport::Concern include Clearance::Authentication include Clearance::Authorization end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
clearance-1.14.0 | lib/clearance/controller.rb |
clearance-1.13.0 | lib/clearance/controller.rb |
clearance-1.12.1 | lib/clearance/controller.rb |
clearance-1.12.0 | lib/clearance/controller.rb |