Sha256: 881462d12954ec58eb0cc3ddccbe541d59e48e83b8077073da8927bad4feb818
Contents?: true
Size: 564 Bytes
Versions: 7
Compression:
Stored size: 564 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
7 entries across 7 versions & 1 rubygems