|
@@ -2,7 +2,7 @@ class ProductAttrConfig < ActiveRecord::Base
|
|
|
has_paper_trail
|
|
has_paper_trail
|
|
|
self.table_name = 'product_attr_configs'
|
|
self.table_name = 'product_attr_configs'
|
|
|
belongs_to :product_attr_key, :foreign_key => :attr_key_id
|
|
belongs_to :product_attr_key, :foreign_key => :attr_key_id
|
|
|
- validates :size_type,presence:true
|
|
|
|
|
|
|
+ validates :size_type,:product_id,:product_attr_key,presence:true
|
|
|
attr_accessor :show_products
|
|
attr_accessor :show_products
|
|
|
|
|
|
|
|
PRODUCT_ENUM = []
|
|
PRODUCT_ENUM = []
|