mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
We're bringing in the setter that got removed in Spree 2.0 so that we can still pass an on_demand value from the product creation form. However, we won't keep the getter to keep things simple. The frontend seems to be checking the existence of variants anyway, so then it can also check for product.master.on_demand and we avoid some logic on the backend.