Sha256: 7f5d09f0c94a4fea76e9d9d4d449639a07adebda388d58d8b76fa405ed772ac8

Contents?: true

Size: 144 Bytes

Versions: 10

Compression:

Stored size: 144 Bytes

Contents

abilities_for(:admin) do
    
  can :manage, [Activity, User, Variation, Year]
  
  cannot :destroy, User do |u|
    (user == u)
  end
    
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
canard-0.2.7 test/abilities/admins.rb
canard-0.2.5 test/abilities/admins.rb
canard-0.2.4 test/abilities/admins.rb
canard-0.2.3 test/abilities/admins.rb
canard-0.2.2 test/abilities/admins.rb
canard-0.2.1 test/abilities/admins.rb
canard-0.2.0 test/abilities/admins.rb
canard-0.1.2 test/abilities/admins.rb
canard-0.1.1 test/abilities/admins.rb
canard-0.1.0 test/abilities/admins.rb