Class: ActiveAcl::Privilege

Inherits:
ActiveRecord::Base
  • Object
show all
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

Instance Method Summary collapse

Class Method Details

.reloadable?Boolean

:nodoc:

Returns:

  • (Boolean)


22
23
24
# File 'lib/active_acl/privilege.rb', line 22

def self.reloadable? #:nodoc:
  return false
end

Instance Method Details

#active_acl_descriptionObject

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