Class: AclRolesComponent

Inherits:
Para::Component::Base
  • Object
show all
Defined in:
app/components/acl_roles_component.rb

Instance Method Summary collapse

Instance Method Details

#modelObject



12
13
14
# File 'app/components/acl_roles_component.rb', line 12

def model
  @model ||= model_type.constantize
end

#model_typeObject



8
9
10
# File 'app/components/acl_roles_component.rb', line 8

def model_type
  '::Para::Acl::Role'
end

#resourcesObject



4
5
6
# File 'app/components/acl_roles_component.rb', line 4

def resources
  @resources ||= Para::Acl::Role.all
end