|
|
@@ -2,7 +2,7 @@ class ProductAttrConfig < ActiveRecord::Base
|
|
|
has_paper_trail
|
|
|
self.table_name = 'product_attr_configs'
|
|
|
belongs_to :product_attr_key, :foreign_key => :attr_key_id
|
|
|
- validates :type,presence:true
|
|
|
+ validates :size_type,presence:true
|
|
|
|
|
|
|
|
|
def show_products
|
|
|
@@ -31,20 +31,20 @@ class ProductAttrConfig < ActiveRecord::Base
|
|
|
field :product_id
|
|
|
field :showProducts
|
|
|
field :product_attr_key
|
|
|
- field :type
|
|
|
+ field :size_type
|
|
|
end
|
|
|
|
|
|
show do
|
|
|
field :id
|
|
|
field :product_id
|
|
|
field :product_attr_key
|
|
|
- field :type
|
|
|
+ field :size_type
|
|
|
end
|
|
|
|
|
|
edit do
|
|
|
field :product_id
|
|
|
field :product_attr_key
|
|
|
- field :type
|
|
|
+ field :size_type
|
|
|
end
|
|
|
end
|
|
|
|