소스 검색

增加商品属性定义

abiao 5 년 전
부모
커밋
e129830157
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      app/models/product_attr_config.rb

+ 3 - 1
app/models/product_attr_config.rb

@@ -7,12 +7,14 @@ class ProductAttrConfig < ActiveRecord::Base
 
 
     def PRODUCT_ENUM
-        showProducts=[0,"初始值"]
+        showProducts=["1","初始值"]
+=begin
         @products = Product.where("show_flag=1").order("created_at desc")
         @products.each do |pd|
             a=[pd.name,pd.id]
             showProducts.push(a)
         end
+=end
         #showProducts.each {|v| puts v}
         return showProducts
     end