ソースを参照

增加商品属性定义

abiao 5 年 前
コミット
eebebc84c4
共有1 個のファイルを変更した2 個の追加0 個の削除を含む
  1. 2 0
      app/models/product.rb

+ 2 - 0
app/models/product.rb

@@ -12,6 +12,7 @@ class Product < ActiveRecord::Base
     COLOR_ENUM =  []
     def get_size_enum
         SIZE_ENUM.clear
+=begin
         if SIZE_ENUM.length ==0
             linkSize = ProductAttrConfig.where("product_id=? and size_type='size'",self.id).first
             if !linkSize.blank?
@@ -22,6 +23,7 @@ class Product < ActiveRecord::Base
                 end
             end
         end
+=end
 
         COLOR_ENUM.clear
         if COLOR_ENUM.length==0