Class: Ability

Inherits:
PickyGuard::Loader show all
Defined in:
lib/generators/picky_guard/templates/ability.rb

Instance Method Summary collapse

Methods inherited from PickyGuard::Loader

#adjust, #can, #cannot

Constructor Details

#initialize(user) ⇒ Ability

Returns a new instance of Ability.



6
7
8
9
# File 'lib/generators/picky_guard/templates/ability.rb', line 6

def initialize(user)
  super(user)
  adjust(user, UserRoleChecker, ResourceActions, RolePolicies)
end