Преглед изворни кода

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