Module: Authlogic::Session::Scopes
- Included in:
- Base
- Defined in:
- lib/authlogic/session/scopes.rb
Overview
Authentication can be scoped, and it’s easy, you just need to define how you want to scope everything. This should help you:
-
Want to scope by a parent object? Ex: An account has many users. Checkout Authlogic::AuthenticatesMany
-
Want to scope the validations in your model? Ex: 2 users can have the same login under different accounts. See Authlogic::ActsAsAuthentic::Scope
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
-
.included(klass) ⇒ Object
:nodoc:.
Class Method Details
.included(klass) ⇒ Object
:nodoc:
13 14 15 16 17 18 19 |
# File 'lib/authlogic/session/scopes.rb', line 13 def self.included(klass) klass.class_eval do extend ClassMethods include InstanceMethods attr_writer :scope end end |