refactor instructeur_avis_url

This commit is contained in:
Christophe Robillard 2020-05-20 16:32:06 +02:00
parent b0cfb2c02a
commit 4839506374
9 changed files with 14 additions and 14 deletions

View file

@ -6,7 +6,7 @@ module DossierLinkHelper
else
avis = dossier.avis.find_by(instructeur: user)
if avis.present?
instructeur_avis_path(avis)
instructeur_avis_path(avis.procedure, avis)
end
end
elsif user.owns_or_invite?(dossier)