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
- #account_ability(account, options = {}) ⇒ Object
- #current_account_ability(user_type = :user) ⇒ Object
Methods included from Options
#ability_options, options_list, #options_list
Methods included from Common
Instance Method Details
#account_ability(account, options = {}) ⇒ Object
4 5 6 |
# File 'lib/cantango/api/ability/account.rb', line 4 def account_ability account, = {} @account_ability ||= create_ability(account, .merge()) end |
#current_account_ability(user_type = :user) ⇒ Object
8 9 10 |
# File 'lib/cantango/api/ability/account.rb', line 8 def current_account_ability user_type = :user account_ability(get_ability_account user_type) end |