Sha256: 4f715f8e4d586b97b355c6a6701d0e61a777148935bef0e018f1b3151195b8a8
Contents?: true
Size: 649 Bytes
Versions: 4
Compression:
Stored size: 649 Bytes
Contents
module Adminpanel class Category < ActiveRecord::Base attr_accessible :product_ids, :name has_many :categorizations has_many :products, :through => :categorizations, :dependent => :destroy def self.form_attributes [ {"name" => {"type" => "text_field", "name" => "name", "label" => "name", "placeholder" => "name"}}, {"product_ids" => {"type" => "has_many", "model" => "Adminpanel::Product", "name" => "product_ids"}}, ] end def self.display_name "Category" end # def self.icon # "icon-truck" # end end end
Version data entries
4 entries across 4 versions & 1 rubygems