소스 검색

增加商品属性定义

abiao 5 년 전
부모
커밋
b2d7565061
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.id,pd.title]
+            a=[pd.id,pd.name]
             showProducts.push(a)
         end
         showProducts.each {|v| puts v}