Class: Aclize::Acl
- Inherits:
-
Object
- Object
- Aclize::Acl
- Defined in:
- lib/aclize/acl.rb
Defined Under Namespace
Classes: ControllersRegistry, PathsRegistry, Role
Instance Attribute Summary collapse
-
#roles ⇒ Object
readonly
Returns the value of attribute roles.
Instance Method Summary collapse
- #get_acl_for(role) ⇒ Object
-
#initialize ⇒ Acl
constructor
A new instance of Acl.
- #setup(role = :all, &block) ⇒ Object
Constructor Details
Instance Attribute Details
#roles ⇒ Object (readonly)
Returns the value of attribute roles.
6 7 8 |
# File 'lib/aclize/acl.rb', line 6 def roles @roles end |
Instance Method Details
#get_acl_for(role) ⇒ Object
14 15 16 |
# File 'lib/aclize/acl.rb', line 14 def get_acl_for(role) return @roles[role] || @roles[:all] end |