Class: Adminpanel::Rol

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Base
Defined in:
app/models/adminpanel/rol.rb

Class Method Summary collapse

Class Method Details

.display_nameObject



27
28
29
# File 'app/models/adminpanel/rol.rb', line 27

def self.display_name
  'Rol'
end

.form_attributesObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'app/models/adminpanel/rol.rb', line 8

def self.form_attributes
  [
    {
      'name' => {
        'type' => 'text_field',
        'label' => 'Nombre',
        'placeholder' => 'Community Manager'
      }
    },
    {
      'permissions' => {
        'type' => 'has_many',
        'model' => "Adminpanel::Permission",
        'label' => 'Permisos'
      }
    }
  ]
end

.iconObject



31
32
33
# File 'app/models/adminpanel/rol.rb', line 31

def self.icon
  'ticket'
end