Sha256: 34d45d7d9c84c2c7209228fd799bfafac0f061aac5e8897ededb97edb5127357

Contents?: true

Size: 546 Bytes

Versions: 5

Compression:

Stored size: 546 Bytes

Contents

module Adminpanel
  class Categorization < ActiveRecord::Base
    include Adminpanel::Base
    belongs_to :product
    belongs_to :category


    def self.form_attributes
        [
		      {"product_id" => {"type" => "belongs_to", "model" => "Adminpanel::Product", "name" => "product_id"}},
		      {"category_id" => {"type" => "belongs_to", "model" => "Adminpanel::Category", "name" => "category_id"}},
        ]
    end

    def self.display_name
        "Categorization"
    end

    # def self.icon
    #     "icon-truck"
    # end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
adminpanel-2.1.2 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-2.1.1 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-2.1.0 spec/dummy/app/models/adminpanel/categorization.rb
adminpanel-2.0.1 spec/dummy/app/models/adminpanel/categorization.rb
adminpanel-2.0.0 spec/dummy/app/models/adminpanel/categorization.rb