Sha256: 6d9efd6ec2a991c7cd3b897742ccdfa9228e8d2fd8a266558f6f8ec191e6ae0b

Contents?: true

Size: 202 Bytes

Versions: 2

Compression:

Stored size: 202 Bytes

Contents

Abilities.define do
  can :create, Post
  cannot :read, Post
  can 'destroy', Post.new if admin?
  can :edit, Post do |subject|
    subject.user == self
  end
  can :manage, User
  can :touch, :all
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
abilities-0.1.2 test/dummy/config/abilities.rb
abilities-0.1.0 test/dummy/config/abilities.rb