Class: Ability
- Inherits:
-
Object
- Object
- Ability
- Includes:
- CanCan::Ability
- Defined in:
- app/security/ability.rb
Overview
Defualt ability for wallaby If main app has defined ‘ability.rb`, this file will not be loaded/used.
Instance Method Summary collapse
-
#initialize(_user) ⇒ Ability
constructor
A new instance of Ability.
Constructor Details
#initialize(_user) ⇒ Ability
Returns a new instance of Ability.
6 7 8 |
# File 'app/security/ability.rb', line 6 def initialize(_user) can :manage, :all end |