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

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

Instance Method Summary collapse

Instance Method Details

#initialize(*args) ⇒ Object

Setting the scope if it exists upon instantiation.



77
78
79
80
# File 'lib/novelys_authlogic/session/scopes.rb', line 77

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

#scopeObject

The scope of the current object



83
84
85
# File 'lib/novelys_authlogic/session/scopes.rb', line 83

def scope
  @scope ||= {}
end