diff --git a/app/controllers/admin/schedules_controller.rb b/app/controllers/admin/schedules_controller.rb index e71917044b..4c6354d8f0 100644 --- a/app/controllers/admin/schedules_controller.rb +++ b/app/controllers/admin/schedules_controller.rb @@ -93,5 +93,9 @@ module Admin syncer = OpenFoodNetwork::ProxyOrderSyncer.new(subscriptions) syncer.sync! end + + def permitted_resource_params + params.require(:schedule).permit(:name, order_cycle_ids: []) + end end end