Files
openfoodnetwork/app/controllers
Matt-Yorkley 1bf4e6fa56 Reorder conditions for performance
A little micro-optimisation: `@order.checkout_allowed?` requires a database query, whereas `@order.completed?` does not. So in cases where the order is completed we can return early here before hitting the database.
2021-11-14 13:58:15 +00:00
..
2021-09-08 14:28:31 +01:00