浏览代码

增加商品属性定义

abiao 5 年之前
父节点
当前提交
386aec60ef
共有 1 个文件被更改,包括 1 次插入1 次删除
  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