瀏覽代碼

增加商品属性定义

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

+ 2 - 3
app/models/product.rb

@@ -19,6 +19,7 @@ class Product < ActiveRecord::Base
                 SIZE_ENUM.push(a)
             end
         end
+        return "--"
     end
     IMG_STORE_PATH = "product"
 
@@ -106,9 +107,7 @@ class Product < ActiveRecord::Base
             end
             field :is_only_new
             field :video_state
-            field :get_size_enum do
-                visible false
-            end
+            field :get_size_enum
             field :size_id, :enum do
                 enum do
                     SIZE_ENUM