Class: ActiveAcl::Privilege
- Defined in:
- lib/active_acl/privilege.rb
Overview
The basic “privilege” object, like Forum::VIEW might be the privilege to view a forum. Check the README for a detailed description on usage.
Class Method Summary collapse
-
.reloadable? ⇒ Boolean
:nodoc:.
Instance Method Summary collapse
-
#active_acl_description ⇒ Object
Returns the instance representation in the admin screens.
Class Method Details
.reloadable? ⇒ Boolean
:nodoc:
22 23 24 |
# File 'lib/active_acl/privilege.rb', line 22 def self.reloadable? #:nodoc: return false end |
Instance Method Details
#active_acl_description ⇒ Object
Returns the instance representation in the admin screens. Uses active_acl_description from class if present.
14 15 16 17 18 19 20 |
# File 'lib/active_acl/privilege.rb', line 14 def active_acl_description begin section.constantize.active_acl_description rescue section end + '/' + value end |