Class: ActiveAcl::Acl

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/active_acl/acl.rb

Overview

This model is the “glue” :-). Every permission assignment uses an Acl model object, assigns objects, groups and privileges and setting

‘allow’ to “true” or “false” to grant or deny access.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.reloadable?Boolean

:nodoc:

Returns:

  • (Boolean)


23
24
25
# File 'lib/active_acl/acl.rb', line 23

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

Instance Method Details

#active_acl_descriptionObject

used as instance description in admin screen



28
29
30
31
32
33
34
35
36
37
38
# File 'lib/active_acl/acl.rb', line 28

def active_acl_description
  if note
    if section
      '/' + section.description + '/' + note
    else
      return note
    end
  else
    return nil
  end
end