Sha256: a45023649c07087f484401e22d62b5d009059ef555577d87728b7e2e17a2a0da
Contents?: true
Size: 676 Bytes
Versions: 5
Compression:
Stored size: 676 Bytes
Contents
module Adminpanel class Rol < ActiveRecord::Base include Adminpanel::Base has_many :permissions validates_presence_of :name validates_uniqueness_of :name def self.form_attributes [ { 'name' => { 'type' => 'text_field', 'label' => 'Nombre', 'placeholder' => 'Community Manager' } }, { 'permissions' => { 'type' => 'has_many', 'model' => "Adminpanel::Permission", 'label' => 'Permisos' } } ] end def self.display_name 'Rol' end def self.icon 'ticket' end end end
Version data entries
5 entries across 5 versions & 1 rubygems