@@ -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]