Permit specific params in schedules controller

This commit is contained in:
Luis Ramos
2020-02-25 17:34:25 +00:00
parent 423d5a5a61
commit b99d4ab627

View File

@@ -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