Sha256: ea4c0ed7c27ff53f07cc15b94c976dff28a978aceffffd06e861bfcb0180ac3a
Contents?: true
Size: 775 Bytes
Versions: 2
Compression:
Stored size: 775 Bytes
Contents
module Adminpanel class Salesman < ActiveRecord::Base include Adminpanel::Base include Adminpanel::Facebook include Adminpanel::Twitter belongs_to :product def self.form_attributes [ { 'name' => { 'type' => 'text_field', 'label' => 'name', 'placeholder' => 'name' } }, { 'product_id' => { 'type' => 'select', 'label' => 'product_id', 'options' => Proc.new { |object| Adminpanel::Product.all.map {|o| [o.id, o.supername]} } } }, ] 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.5.5 | test/dummy/app/models/adminpanel/salesman.rb |
adminpanel-2.5.4 | test/dummy/app/models/adminpanel/salesman.rb |