Explorar o código

增加商品属性定义

abiao %!s(int64=5) %!d(string=hai) anos
pai
achega
386aec60ef
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

@@ -3,7 +3,7 @@ class ProductAttrConfig < ActiveRecord::Base
     self.table_name = 'product_attr_configs'
     belongs_to :product_attr_key, :foreign_key => :attr_key_id
     validates :size_type,presence:true
-    attr_accessor :show_products
+    attr_accessor :show_products,:PRODUCT_ENUM
 
 
     def PRODUCT_ENUM