Files
openfoodnetwork/app/serializers/api/admin
Pau Perez 20a7f2f24e Eager load payment and subs. order associations
This removes the N+1 queries caused by
`Api::Admin::OrderSerialier#ready_to_capture` when used from
`Api::OrdersController#index`. While it's fine for the single-order
controller actions, it's not for this one that deals with a collection
of orders.

Fortunately, `SearchOrders` is used only in this controller action so we
can put the `includes` calls there, otherwise, we would need to refactor
it a bit to pass in a context-specific AR relation.
2021-02-23 10:26:12 -08:00
..
2020-11-09 14:06:37 -03:00
2020-10-30 16:14:39 +00:00
2020-10-30 16:14:39 +00:00
2020-10-30 16:14:39 +00:00
2020-10-30 16:14:39 +00:00
2020-10-30 16:14:39 +00:00