浏览代码

增加商品属性定义

abiao 5 年之前
父节点
当前提交
3f783f7893
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/models/product_attr_config.rb

+ 1 - 1
app/models/product_attr_config.rb

@@ -9,7 +9,7 @@ class ProductAttrConfig < ActiveRecord::Base
         showProducts=[]
         @products = Product.where("show_flag=1").order("created_at desc")
         @products.each do |pd|
-            a=[pd.namepd.id]
+            a=[pd.name,pd.id]
             showProducts.push(a)
         end
         showProducts.each {|v| puts v}