Module: Clearance::HttpAuth

Defined in:
lib/clearance_http_auth.rb,
lib/clearance_http_auth/engine.rb,
lib/clearance_http_auth/version.rb,
lib/clearance_http_auth/middleware.rb,
lib/clearance_http_auth/configuration.rb,
lib/clearance_http_auth/current_user_override.rb

Overview

Include this module in a controller to enable the middleware and current_user override:

class ProjectsController < ApplicationController
  include Clearance::Authentication
  include Clearance::HttpAuth
end

Defined Under Namespace

Modules: CurrentUserOverride Classes: Configuration, Engine, Middleware

Constant Summary collapse

VERSION =
"0.3.0"

Class Method Summary collapse

Class Method Details

.included(controller) ⇒ Object



16
17
18
19
# File 'lib/clearance_http_auth.rb', line 16

def self.included(controller)
  controller.send :include, CurrentUserOverride
  controller.use  Middleware
end