Link assign_to and procedure by groupe_instructeur
This commit is contained in:
parent
4da12ed3e8
commit
ad7ef6c739
4 changed files with 4 additions and 4 deletions
|
@ -86,7 +86,7 @@ class Instructeur < ApplicationRecord
|
|||
end
|
||||
|
||||
def procedure_presentation_and_errors_for_procedure_id(procedure_id)
|
||||
assign_to.find_by(procedure_id: procedure_id).procedure_presentation_or_default_and_errors
|
||||
assign_to.joins(:groupe_instructeur).find_by(groupe_instructeurs: { procedure_id: procedure_id }).procedure_presentation_or_default_and_errors
|
||||
end
|
||||
|
||||
def notifications_for_dossier(dossier)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue