瀏覽代碼

product package function develop

abiao 4 年之前
父節點
當前提交
cd08d3a339
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/models/product_item.rb

+ 2 - 1
app/models/product_item.rb

@@ -34,7 +34,9 @@ class ProductItem < ActiveRecord::Base
       # include_all_fields
       field :id
       field :product_id
+      field :title
       field :item_id
+      field :item_title
       field :nums
     end
     show do
@@ -45,7 +47,6 @@ class ProductItem < ActiveRecord::Base
     end
 
     edit do
-      field :id
       field :product_id
       field :item_id
       field :nums