Sha256: a3b3752023ca56afde673606d5112c3e2972c915bb68a98ae846e4001ce5e326

Contents?: true

Size: 126 Bytes

Versions: 12

Compression:

Stored size: 126 Bytes

Contents

Canard::Abilities.for(:admin) do
  
  can :manage, [Post, User]
  
  cannot :destroy, User do |u|
    (user == u)
  end
  
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
canard-0.5.0.pre test/dummy/app/abilities/admins.rb
canard-0.4.3 test/dummy/app/abilities/admins.rb
canard-0.4.2.pre test/dummy/app/abilities/admins.rb
canard-0.4.1 test/dummy/app/abilities/admins.rb
canard-0.4.0 test/dummy/app/abilities/admins.rb
canard-0.4.0.pre test/dummy/app/abilities/admins.rb
canard-0.3.7 test/dummy/app/abilities/admins.rb
canard-0.3.6 test/dummy/app/abilities/admins.rb
canard-0.3.5 test/dummy/app/abilities/admins.rb
canard-0.3.4 test/dummy/app/abilities/admins.rb
canard-0.3.2 test/dummy/app/abilities/admins.rb
canard-0.3.1 test/dummy/app/abilities/admins.rb