Sha256: 9a511231e58eaf4bfbdf0e9446cb1a7a6af85b31adee5570622226af52064652

Contents?: true

Size: 207 Bytes

Versions: 22

Compression:

Stored size: 207 Bytes

Contents

class EditorRoleGroupPermit < CanTango::RoleGroupPermit
  def initialize ability
    super
  end

  protected

  def static_rules
    can :read, [Comment, Post, Article]
    can :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/role_groups/editor_permit.rb
cantango-0.9.4.6 spec/devise-dummy/app/permits/role_groups/editor_permit.rb
cantango-0.9.4.5 spec/devise-dummy/app/permits/role_groups/editor_permit.rb
cantango-0.9.4.3 spec/devise-dummy/app/permits/role_groups/editor_permit.rb
cantango-0.9.4.2 spec/devise-dummy/app/permits/role_groups/editor_permit.rb
cantango-0.9.4.1 spec/devise-dummy/app/permits/role_groups/editor_permit.rb
cantango-0.9.4 spec/devise-dummy/app/permits/role_groups/editor_permit.rb
cantango-0.9.3.2 spec/devise-dummy/app/permits/role_groups/editor_permit.rb
cantango-0.8.9.5 spec/devise-dummy/app/permits/role_groups/editor_permit.rb
cantango-0.8.9.4 spec/devise-dummy/app/permits/role_groups/editor_permit.rb
cantango-0.8.9.3 spec/devise-dummy/app/permits/role_groups/editor_permit.rb
cantango-0.8.9.2 spec/devise-dummy/app/permits/role_groups/editor_permit.rb
cantango-0.8.9.1 spec/devise-dummy/app/permits/role_groups/editor_permit.rb
cantango-0.8.9 spec/devise-dummy/app/permits/role_groups/editor_permit.rb
cantango-0.8.8.1 spec/devise-dummy/app/permits/role_groups/editor_permit.rb
cantango-0.8.8 spec/devise-dummy/app/permits/role_groups/editor_permit.rb
cantango-0.8.7 spec/devise-dummy/app/permits/role_groups/editor_permit.rb
cantango-0.8.6.2 spec/devise-dummy/app/permits/role_groups/editor_permit.rb
cantango-0.8.6.1 spec/devise-dummy/app/permits/role_groups/editor_permit.rb
cantango-0.8.6 spec/devise-dummy/app/permits/role_groups/editor_permit.rb