Explorar o código

product package function develop

abiao %!s(int64=5) %!d(string=hai) anos
pai
achega
cd08d3a339
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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