Procházet zdrojové kódy

增加商品属性定义

abiao před 5 roky
rodič
revize
935ebded4c
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      app/models/product_attr_config.rb

+ 3 - 3
app/models/product_attr_config.rb

@@ -32,7 +32,7 @@ class ProductAttrConfig < ActiveRecord::Base
             field :id
             field :product_id, :enum do
                 enum do
-                    PRODUCT_ENUM
+                  self.PRODUCT_ENUM
                 end
             end
             field :product_attr_key
@@ -47,7 +47,7 @@ class ProductAttrConfig < ActiveRecord::Base
             field :id
             field :product_id, :enum do
                 enum do
-                    PRODUCT_ENUM
+                  self.PRODUCT_ENUM
                 end
             end
             field :product_attr_key
@@ -61,7 +61,7 @@ class ProductAttrConfig < ActiveRecord::Base
         edit do
             field :product_id, :enum do
                 enum do
-                    PRODUCT_ENUM
+                  self.PRODUCT_ENUM
                 end
             end
             field :product_attr_key