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-11-04 14:55:23 +00:00
2021-11-04 14:55:23 +00:00
2021-11-04 14:55:23 +00:00
2021-11-04 14:55:23 +00:00
2021-06-17 23:07:26 +01:00
2021-11-14 13:58:15 +00:00
2021-06-24 11:58:33 -07:00
2021-06-17 23:07:26 +01:00
2021-11-14 13:58:15 +00:00
2021-06-17 23:07:26 +01:00
2021-09-08 14:28:31 +01:00
2021-06-17 23:07:26 +01:00
2021-06-17 23:07:26 +01:00
2021-06-17 23:07:26 +01:00
2021-07-06 10:09:37 +02:00
2021-06-17 23:07:26 +01:00
2021-06-24 11:58:33 -07:00
2021-06-17 23:07:26 +01:00
2021-06-17 23:07:26 +01:00
2021-06-17 23:07:26 +01:00
2021-06-17 23:07:26 +01:00
2021-06-17 23:07:26 +01:00
2021-10-25 21:28:28 -05:00
2021-06-17 23:07:26 +01:00
2021-06-17 23:07:26 +01:00
2021-06-17 23:07:26 +01:00