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-2.6.0 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-2.5.5 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-2.5.4 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-2.5.3 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-2.5.2 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-2.5.1 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-2.5.0 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-2.4.3 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-2.4.2 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-2.4.1 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-2.4.0 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-2.3.1 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-2.3.0 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-2.2.5 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-2.2.4 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-2.2.3 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-2.2.2 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-2.2.1 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-2.2.0 test/dummy/app/models/adminpanel/categorization.rb
adminpanel-2.1.7 test/dummy/app/models/adminpanel/categorization.rb