Sha256: f17236ce5d163a3752e63729312d016151842ac4884a00b6254a1c644303b7ee

Contents?: true

Size: 203 Bytes

Versions: 22

Compression:

Stored size: 203 Bytes

Contents

class UserRolePermit < CanTango::RolePermit
  def initialize ability
    super
  end

  protected

  def static_rules
    can :read, Article
    can :edit, Article
    cannot :create, Article
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
cantango-0.9.4.7 spec/devise-dummy/app/permits/roles/user_permit.rb
cantango-0.9.4.6 spec/devise-dummy/app/permits/roles/user_permit.rb
cantango-0.9.4.5 spec/devise-dummy/app/permits/roles/user_permit.rb
cantango-0.9.4.3 spec/devise-dummy/app/permits/roles/user_permit.rb
cantango-0.9.4.2 spec/devise-dummy/app/permits/roles/user_permit.rb
cantango-0.9.4.1 spec/devise-dummy/app/permits/roles/user_permit.rb
cantango-0.9.4 spec/devise-dummy/app/permits/roles/user_permit.rb
cantango-0.9.3.2 spec/devise-dummy/app/permits/roles/user_permit.rb
cantango-0.8.9.5 spec/devise-dummy/app/permits/roles/user_permit.rb
cantango-0.8.9.4 spec/devise-dummy/app/permits/roles/user_permit.rb
cantango-0.8.9.3 spec/devise-dummy/app/permits/roles/user_permit.rb
cantango-0.8.9.2 spec/devise-dummy/app/permits/roles/user_permit.rb
cantango-0.8.9.1 spec/devise-dummy/app/permits/roles/user_permit.rb
cantango-0.8.9 spec/devise-dummy/app/permits/roles/user_permit.rb
cantango-0.8.8.1 spec/devise-dummy/app/permits/roles/user_permit.rb
cantango-0.8.8 spec/devise-dummy/app/permits/roles/user_permit.rb
cantango-0.8.7 spec/devise-dummy/app/permits/roles/user_permit.rb
cantango-0.8.6.2 spec/devise-dummy/app/permits/roles/user_permit.rb
cantango-0.8.6.1 spec/devise-dummy/app/permits/roles/user_permit.rb
cantango-0.8.6 spec/devise-dummy/app/permits/roles/user_permit.rb