Class: Ability

Inherits:
Object
  • Object
show all
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

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