mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-06 02:51:34 +00:00
This way it can assign the order cycles to the schedule when this is persisted. An OrderCycleSchedule (the join table) can't be created until both schedule and order_cycle got an id. Also, we do not call `#adapt_params` when creating the Schedule as that assigns `order_cycle_ids` to `@object.attributes` thus, attempting to create the OrderCycleSchedule without a schedule_id.