Sha256: 8e1b9b93b8de0343c6917a4c4d0ecf6799c93de7d95e671f0251e3b78d8d164b
Contents?: true
Size: 576 Bytes
Versions: 2
Compression:
Stored size: 576 Bytes
Contents
module Adminpanel class Salesman < ActiveRecord::Base include Adminpanel::Base belongs_to :product def self.form_attributes [ { 'name' => { 'type' => 'text_field', 'label' => 'name', 'placeholder' => 'name' } }, { 'product_id' => { 'type' => 'belongs_to', 'model' => 'Adminpanel::Product', 'label' => 'product', 'placeholder' => 'product' } }, ] end def self.display_name 'Agente' #singular end # def self.icon # "truck" # fa-{icon} # end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
adminpanel-2.1.1 | test/dummy/app/models/adminpanel/salesman.rb |
adminpanel-2.1.0 | spec/dummy/app/models/adminpanel/salesman.rb |