Sha256: 133fd5a416a2f9530610ca9eb4aa93c96a6178d23aeffe6a6a317edfd6af3cbe
Contents?: true
Size: 619 Bytes
Versions: 6
Compression:
Stored size: 619 Bytes
Contents
module Adminpanel class Categorization < ActiveRecord::Base attr_accessible :product_id, :category_id 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
6 entries across 6 versions & 1 rubygems