Module: CanTango::Api::UserAccount::Ability

Includes:
Common, Options
Included in:
Can
Defined in:
lib/cantango/api/user_account/ability.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

#current_account_ability(user_type = :user) ⇒ Object



10
11
12
# File 'lib/cantango/api/user_account/ability.rb', line 10

def  user_type = :user
   
end

#user_account_ability(user_account, options = {}) ⇒ Object Also known as: account_ability



5
6
7
# File 'lib/cantango/api/user_account/ability.rb', line 5

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