Module: CanTango::Api::Ability::Account

Includes:
CanTango::Api::Attributes, Common, Options
Included in:
Can::Account, Scope::Account
Defined in:
lib/cantango/api/ability/account.rb

Defined Under Namespace

Modules: AbilityAccount

Instance Method Summary collapse

Methods included from Options

#ability_options, options_list, #options_list

Methods included from Common

#category, #create_ability

Instance Method Details

#account_ability(account, options = {}) ⇒ Object


4
5
6
# File 'lib/cantango/api/ability/account.rb', line 4

def  , options = {}
  @account_ability ||= create_ability(, ability_options.merge(options))
end

#current_account_ability(user_type = :user) ⇒ Object


8
9
10
# File 'lib/cantango/api/ability/account.rb', line 8

def  user_type = :user
  ( user_type)
end