Sha256: 55efef13b42c17896ae9e18b75d537aa909f7abb3d7cc66b0d095aa674cd2f3f

Contents?: true

Size: 550 Bytes

Versions: 43

Compression:

Stored size: 550 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

43 entries across 43 versions & 1 rubygems

Version Path
adminpanel-3.6.1 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-3.6.0 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-3.5.1 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-3.5.0 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-3.4.7 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-3.4.6 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-3.4.5 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-3.4.4 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-3.4.3 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-3.4.2 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-3.4.1 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-3.4.0 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-3.3.4 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-3.3.3 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-3.3.0 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-3.2.1 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-3.2.0 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-3.1.0 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-3.0.0 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-2.6.1 test/dummy/app/models/adminpanel/categorization.rb