Module: Clearance
- Defined in:
- lib/clearance/user.rb,
lib/clearance/engine.rb,
lib/clearance/session.rb,
lib/clearance/version.rb,
lib/clearance/rack_session.rb,
lib/clearance/configuration.rb,
lib/clearance/authentication.rb,
lib/clearance/testing/helpers.rb,
lib/clearance/password_strategies.rb,
lib/clearance/testing/assertion_error.rb,
lib/clearance/password_strategies/sha1.rb,
lib/clearance/testing/deny_access_matcher.rb,
lib/clearance/password_strategies/blowfish.rb,
lib/generators/clearance/views/views_generator.rb,
lib/generators/clearance/install/install_generator.rb,
lib/generators/clearance/features/features_generator.rb
Defined Under Namespace
Modules: Authentication, Generators, PasswordStrategies, Testing, User Classes: Configuration, Engine, PasswordsController, RackSession, Session, SessionsController, UsersController
Constant Summary collapse
- VERSION =
'0.16.3'
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
-
.configure {|configuration| ... } ⇒ Object
Configure Clearance someplace sensible, like config/initializers/clearance.rb.
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
16 17 18 |
# File 'lib/clearance/configuration.rb', line 16 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
Configure Clearance someplace sensible, like config/initializers/clearance.rb
If you want users to only be signed in during the current session instead of being remembered, do this:
config. = lambda { }
34 35 36 37 |
# File 'lib/clearance/configuration.rb', line 34 def self.configure self.configuration ||= Configuration.new yield(configuration) end |