refactor(routing): do not use toggle_routing as a callback anymore

This commit is contained in:
Eric Leroy-Terquem 2023-06-26 15:10:18 +02:00
parent 30f6aaed34
commit 2a3ffdf3c6

View file

@ -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]) }