Sha256: bc977e1aafce0e5824b7105d6d86d14fdbb6799eb58a43834e9977d88d9bfd25

Contents?: true

Size: 196 Bytes

Versions: 2

Compression:

Stored size: 196 Bytes

Contents

Abilities.define do
  can :touch, :any
  can :manage, User do |user|
    user == self
  end
  can :create, [Product, User]
  can %i(view list), Product
  cannot :detroy, Product unless admin?
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
abilities-4.0.0.1 test/dummy/config/abilities.rb
abilities-4.0.0.0 test/dummy/config/abilities.rb