Sha256: bbc3f4fa80032627ee275eba60032b03f27c9c9cef0db4cec00ec1255363ebd0

Contents?: true

Size: 609 Bytes

Versions: 1

Compression:

Stored size: 609 Bytes

Contents

module Adminpanel
  class Salesman < ActiveRecord::Base
    include Adminpanel::Base
    include Adminpanel::Facebook

    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

1 entries across 1 versions & 1 rubygems

Version Path
adminpanel-2.1.2 test/dummy/app/models/adminpanel/salesman.rb