1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00

(feat) order items order by created date

This commit is contained in:
Du Peng 2022-09-08 12:13:34 +02:00
parent 75b3295f65
commit 85720c31fa

View File

@ -10,7 +10,7 @@ if order&.statistic_profile&.user
end end
end end
json.order_items_attributes order.order_items do |item| json.order_items_attributes order.order_items.order(created_at: :asc) do |item|
json.id item.id json.id item.id
json.orderable_type item.orderable_type json.orderable_type item.orderable_type
json.orderable_id item.orderable_id json.orderable_id item.orderable_id