소스 검색

增加商品属性定义

abiao 5 년 전
부모
커밋
67f0fafb85
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      app/models/product_attr_config.rb

+ 3 - 3
app/models/product_attr_config.rb

@@ -34,7 +34,7 @@ class ProductAttrConfig < ActiveRecord::Base
             field :id
             field :product_id, :enum do
                 enum do
-                  self.PRODUCT_ENUM
+                  PRODUCT_ENUM
                 end
             end
             field :product_attr_key
@@ -49,7 +49,7 @@ class ProductAttrConfig < ActiveRecord::Base
             field :id
             field :product_id, :enum do
                 enum do
-                  self.PRODUCT_ENUM
+                  PRODUCT_ENUM
                 end
             end
             field :product_attr_key
@@ -63,7 +63,7 @@ class ProductAttrConfig < ActiveRecord::Base
         edit do
             field :product_id, :enum do
                 enum do
-                  self.PRODUCT_ENUM
+                  PRODUCT_ENUM
                 end
             end
             field :product_attr_key