Prechádzať zdrojové kódy

增加商品属性定义

abiao 5 rokov pred
rodič
commit
aff335766e
1 zmenil súbory, kde vykonal 2 pridanie a 3 odobranie
  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