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:
parent
75b3295f65
commit
85720c31fa
@ -10,7 +10,7 @@ if order&.statistic_profile&.user
|
||||
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.orderable_type item.orderable_type
|
||||
json.orderable_id item.orderable_id
|
||||
|
Loading…
Reference in New Issue
Block a user