Module: Authlogic::Session::Scopes::InstanceMethods

Defined in:
lib/authlogic/session/scopes.rb

Instance Method Summary collapse

Instance Method Details

#initialize(*args) ⇒ Object

Setting the scope if it exists upon instantiation.



79
80
81
82
# File 'lib/authlogic/session/scopes.rb', line 79

def initialize(*args)
  self.scope = self.class.scope
  super
end

#scopeObject

The scope of the current object



85
86
87
# File 'lib/authlogic/session/scopes.rb', line 85

def scope
  @scope ||= {}
end