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