app/controllers/comable/admin/orders_controller.rb in comable_backend-0.4.2 vs app/controllers/comable/admin/orders_controller.rb in comable_backend-0.5.0
- old
+ new
@@ -87,11 +87,15 @@
private
def order_params
params.require(:order).permit(
:email,
+ :payment_fee,
+ :shipment_fee,
+ :total_price,
bill_address_attributes: permitted_address_attributes,
- ship_address_attributes: permitted_address_attributes
+ ship_address_attributes: permitted_address_attributes,
+ order_items_attributes: [:id, :name, :code, :price, :quantity]
)
end
end
end
end