module Authorule::Rule
A permission rule. Each rule allows or denies the permission holder one permission.
Usage¶ ↑
Create a model class, and include this mixin into it, e.g.
class PermissionRule < ActiveRecord::Base include Authorule::Rule belongs_to :user end
@see RuleBase
Public Instance Methods
key()
click to toggle source
@!attribute [r] key @return [String] A unique key identifying this rule.
# File lib/authorule/rule.rb, line 98 def key if kind == 'all' 'all' else [ kind, name, action ].compact.join(':') end end
to_display()
click to toggle source
Misc
# File lib/authorule/rule.rb, line 109 def to_display key end