Module: CanTango::Api::UserAccount::Scope

Defined in:
lib/cantango/api/user_account/scope.rb

Instance Method Summary collapse

Instance Method Details

#account_scope(scope, options = {}) {|ab_scope| ... } ⇒ Object

Yields:

  • (ab_scope)


6
7
8
9
10
11
# File 'lib/cantango/api/user_account/scope.rb', line 6

def  scope, options = {}, &block
   = (scope)
  ab_scope = (, options)
  yield ab_scope if block
  ab_scope
end

#as_real_account(scope, options = {}, &block) ⇒ Object



13
14
15
# File 'lib/cantango/api/user_account/scope.rb', line 13

def  scope, options = {}, &block
   scope, options.merge(:masquerade => false), &block
end