Module: CanTango::Api::UserAccount::Ability
Defined Under Namespace
Modules: AbilityAccount
Instance Method Summary collapse
- #current_account_ability(user_type = :user) ⇒ Object
- #user_account_ability(user_account, options = {}) ⇒ Object (also: #account_ability)
Methods included from Options
#ability_options, options_list, #options_list
Methods included from Common
Instance Method Details
#current_account_ability(user_type = :user) ⇒ Object
10 11 12 |
# File 'lib/cantango/api/user_account/ability.rb', line 10 def current_account_ability user_type = :user user_account_ability get_ability_user_account 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 user_account_ability user_account, = {} @account_ability ||= create_ability(user_account, .merge()) end |