Sha256: de8555b8800585eb40aea7347911acc54b24ac4cef37b50d280e1942410d02b6

Contents?: true

Size: 195 Bytes

Versions: 44

Compression:

Stored size: 195 Bytes

Contents

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

  protected

  def static_rules
    can :read, [Comment, Post, Article]
    can :create, Article
  end
end 

Version data entries

44 entries across 22 versions & 1 rubygems

Version Path
cantango-0.9.4.7 spec/dummy/app/permits/roles/guest_permit.rb
cantango-0.9.4.7 spec/devise-dummy/app/permits/roles/guest_permit.rb
cantango-0.9.4.6 spec/dummy/app/permits/roles/guest_permit.rb
cantango-0.9.4.6 spec/devise-dummy/app/permits/roles/guest_permit.rb
cantango-0.9.4.5 spec/dummy/app/permits/roles/guest_permit.rb
cantango-0.9.4.5 spec/devise-dummy/app/permits/roles/guest_permit.rb
cantango-0.9.4.3 spec/dummy/app/permits/roles/guest_permit.rb
cantango-0.9.4.3 spec/devise-dummy/app/permits/roles/guest_permit.rb
cantango-0.9.4.2 spec/devise-dummy/app/permits/roles/guest_permit.rb
cantango-0.9.4.2 spec/dummy/app/permits/roles/guest_permit.rb
cantango-0.9.4.1 spec/devise-dummy/app/permits/roles/guest_permit.rb
cantango-0.9.4.1 spec/dummy/app/permits/roles/guest_permit.rb
cantango-0.9.4 spec/dummy/app/permits/roles/guest_permit.rb
cantango-0.9.4 spec/devise-dummy/app/permits/roles/guest_permit.rb
cantango-0.9.3.2 spec/devise-dummy/app/permits/roles/guest_permit.rb
cantango-0.9.3.2 spec/dummy/app/permits/roles/guest_permit.rb
cantango-0.8.9.5 spec/devise-dummy/app/permits/roles/guest_permit.rb
cantango-0.8.9.5 spec/dummy/app/permits/roles/guest_permit.rb
cantango-0.8.9.4 spec/devise-dummy/app/permits/roles/guest_permit.rb
cantango-0.8.9.4 spec/dummy/app/permits/roles/guest_permit.rb