Sha256: 8b7983bd263083d5e389bb3d14582c2aadfae467e87b598fa33d1c8113540123

Contents?: true

Size: 129 Bytes

Versions: 6

Compression:

Stored size: 129 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
canard-0.2.7 test/dummy/app/abilities/moderators.rb
canard-0.2.5 test/dummy/app/abilities/moderators.rb
canard-0.2.4 test/app/abilities/moderators.rb
canard-0.2.3 test/app/abilities/moderators.rb
canard-0.2.2 test/app/abilities/moderators.rb
canard-0.2.1 test/app/abilities/moderators.rb