add variable to dossier controller

This commit is contained in:
kara Diaby 2021-04-01 11:58:33 +02:00
parent 436f567067
commit f9e4d9c982

View file

@ -60,6 +60,7 @@ module Instructeurs
def avis
@avis_seen_at = current_instructeur.follows.find_by(dossier: dossier)&.avis_seen_at
@avis = Avis.new
@experts_emails = dossier.procedure.experts_procedures.where(revoked_at: nil).map(&:expert).map(&:email).sort
end
def personnes_impliquees