瀏覽代碼

增加商品属性定义

abiao 5 年之前
父節點
當前提交
a81afb35a3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/models/product.rb

+ 1 - 1
app/models/product.rb

@@ -10,7 +10,7 @@ class Product < ActiveRecord::Base
     #["代销","user_sale"]
     SIZE_ENUM =  []
     def get_size_enum
-        IZE_ENUM.clear
+        SIZE_ENUM.clear
         if SIZE_ENUM.length ==0
             @Size = ProductAttrConfig.where("product_id=? and size_type='size'",self.id).first
             if !@Size.blank?