From 2a3ffdf3c668d7ce6ffcedd2330a04403031b930 Mon Sep 17 00:00:00 2001 From: Eric Leroy-Terquem Date: Mon, 26 Jun 2023 15:10:18 +0200 Subject: [PATCH] refactor(routing): do not use toggle_routing as a callback anymore --- app/models/groupe_instructeur.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/models/groupe_instructeur.rb b/app/models/groupe_instructeur.rb index 185538b1a..0e741a001 100644 --- a/app/models/groupe_instructeur.rb +++ b/app/models/groupe_instructeur.rb @@ -34,7 +34,6 @@ class GroupeInstructeur < ApplicationRecord end before_validation -> { label&.strip! } - after_save :toggle_routing scope :without_group, -> (group) { where.not(id: group) } scope :for_api_v2, -> { includes(procedure: [:administrateurs]) }