Sha256: 312f58487ee9ce5b61b6b1b6d1049f96ab0d1ec346ad93f05ca8f9236150c96b

Contents?: true

Size: 159 Bytes

Versions: 2

Compression:

Stored size: 159 Bytes

Contents

class Dummy < ActiveRecord::Base
  protect do |user|
    can :view
    can :create
    can :update
    can :destroy
    can :test
  end

  belongs_to :user
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
protector-cancan-0.1.1 spec/internal/app/models/dummy.rb
protector-cancan-0.1.0 spec/internal/app/models/dummy.rb