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.



89
90
91
92
# File 'lib/authlogic/session/scopes.rb', line 89

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

#scopeObject

The scope of the current object



95
96
97
# File 'lib/authlogic/session/scopes.rb', line 95

def scope
  @scope ||= {}
end