Link assign_to and procedure by groupe_instructeur

This commit is contained in:
simon lehericey 2019-08-26 16:17:25 +02:00
parent 4da12ed3e8
commit ad7ef6c739
4 changed files with 4 additions and 4 deletions

View file

@ -212,7 +212,7 @@ module Instructeurs
end
def assign_to
current_instructeur.assign_to.find_by(procedure: procedure)
current_instructeur.assign_to.joins(:groupe_instructeur).find_by(groupe_instructeurs: { procedure: procedure })
end
def statut