Class | Six |
In: |
lib/six.rb
|
Parent: | Object |
current_rule_pack | [R] | |
rules_packs | [R] |
Add pack to authorization class w/o key
pack: | Any kind of object responding to allowed method |
true or raise exception
Add pack to authorization class
name: | A Symbol declaring the key name of stored pack |
pack: | Any kind of object responding to allowed method |
true or false
Check if authorization class allow access for object to subject using selected pack or all stored. Basically this method
action: | Action name to check for access |
object: | object trying to access resource |
subject: | resource |
true or false
Check if authorization class has pack with such name
name: | A Symbol declaring the key name of stored pack |
true or false
Remove pack from authorization class
name: | A Symbol declaring the key name of stored pack |
true or false
Set current pack from stored packs by key
name: | A Symbol declaring the key name of stored pack |
self or false
Check if object for rule pack is valid
pack: | Any kind of object responding to allowed method |
true or false