Class: Adminpanel::Role
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Adminpanel::Role
- Includes:
- Base
- Defined in:
- app/models/adminpanel/role.rb
Class Method Summary collapse
Class Method Details
.display_name ⇒ Object
34 35 36 |
# File 'app/models/adminpanel/role.rb', line 34 def self.display_name I18n.t('model.Role') end |
.form_attributes ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'app/models/adminpanel/role.rb', line 15 def self.form_attributes [ { 'name' => { 'type' => 'text_field', 'label' => 'Nombre', 'placeholder' => 'Community Manager' } }, { 'permission_ids' => { 'type' => 'has_many', 'model' => "Adminpanel::Permission", 'label' => 'Permisos' } } ] end |
.icon ⇒ Object
38 39 40 |
# File 'app/models/adminpanel/role.rb', line 38 def self.icon 'ticket' end |