Explorar o código

增加商品属性定义

abiao %!s(int64=5) %!d(string=hai) anos
pai
achega
a9568973eb
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      app/models/product_attr.rb
  2. 1 1
      app/models/product_attr_config.rb

+ 1 - 1
app/models/product_attr.rb

@@ -15,7 +15,7 @@ class ProductAttr < ActiveRecord::Base
         })
 
         list do 
-            filters [:name,:ancestry,:position]
+            filters [:name,:product_attr_key]
             field :id
             field :product_attr_key
             field :name 

+ 1 - 1
app/models/product_attr_config.rb

@@ -15,7 +15,7 @@ class ProductAttrConfig < ActiveRecord::Base
         })
 
         list do 
-            filters [:name,:ancestry,:position]
+            filters [:product_id,:attr_key_id]
             field :id
             field :product_id
             field :attr_key_id