Explorar o código

增加商品属性定义

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

+ 1 - 1
app/models/product_attr_config.rb

@@ -16,7 +16,7 @@ class ProductAttrConfig < ActiveRecord::Base
         #showProducts.each {|v| puts v}
         return showProducts
     end
-    PRODUCT_ENUM = show_products
+    PRODUCT_ENUM = self.show_products
     TYPE_ENUM = [["颜色","color"],["尺码","size"]]
     rails_admin do
         navigation_label '商品管理'