Преглед на файлове

增加商品属性定义

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