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:
8 9 10 11 12 13 14 |
# File 'lib/authlogic/session/scopes.rb', line 8 def self.included(klass) klass.class_eval do extend ClassMethods include InstanceMethods attr_writer :scope end end |