Module: Clearance

Defined in:
lib/clearance.rb,
lib/clearance/user.rb,
lib/clearance/token.rb,
lib/clearance/engine.rb,
lib/clearance/session.rb,
lib/clearance/version.rb,
lib/clearance/back_door.rb,
lib/clearance/controller.rb,
lib/clearance/rack_session.rb,
lib/clearance/authorization.rb,
lib/clearance/configuration.rb,
lib/clearance/sign_in_guard.rb,
lib/clearance/authentication.rb,
lib/clearance/session_status.rb,
lib/clearance/testing/helpers.rb,
lib/clearance/password_strategies.rb,
lib/clearance/testing/application.rb,
lib/clearance/default_sign_in_guard.rb,
lib/clearance/constraints/signed_in.rb,
lib/clearance/constraints/signed_out.rb,
lib/clearance/testing/assertion_error.rb,
lib/clearance/password_strategies/sha1.rb,
lib/clearance/password_strategies/bcrypt.rb,
lib/clearance/testing/deny_access_matcher.rb,
lib/clearance/password_strategies/blowfish.rb,
lib/generators/clearance/specs/specs_generator.rb,
lib/generators/clearance/views/views_generator.rb,
lib/generators/clearance/install/install_generator.rb,
lib/clearance/password_strategies/bcrypt_migration_from_sha1.rb

Defined Under Namespace

Modules: Authentication, Authorization, Constraints, Controller, Generators, PasswordStrategies, Testing, User Classes: BackDoor, BaseController, Configuration, DefaultSignInGuard, Engine, FailureStatus, PasswordsController, RackSession, Session, SessionsController, SignInGuard, SuccessStatus, Token, UsersController

Constant Summary

VERSION =
'1.4.0'

Class Method Summary (collapse)

Class Method Details

+ (Object) configuration



49
50
51
# File 'lib/clearance/configuration.rb', line 49

def self.configuration
  @configuration ||= Configuration.new
end

+ (Object) configuration=(config)



53
54
55
# File 'lib/clearance/configuration.rb', line 53

def self.configuration=(config)
  @configuration = config
end

+ (Object) configure {|configuration| ... }

Yields:



57
58
59
# File 'lib/clearance/configuration.rb', line 57

def self.configure
  yield configuration
end

+ (Object) root



13
14
15
# File 'lib/clearance.rb', line 13

def self.root
  File.expand_path('../..', __FILE__)
end