Sfoglia il codice sorgente

增加商品属性定义

abiao 5 anni fa
parent
commit
2b27351554
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/models/product_attr_config.rb

+ 1 - 1
app/models/product_attr_config.rb

@@ -6,7 +6,7 @@ class ProductAttrConfig < ActiveRecord::Base
 
 
     def show_products
-        showProducts=[[]]
+        showProducts=[]
         @products = Product.where("show_flag=1").order("created_at desc")
         @products.each do |pd|
             a=[pd.id,pd.name]