GestionnaireDossierController: use gestionnaire follow

This commit is contained in:
Simon Lehericey 2017-07-17 12:11:33 +02:00 committed by Mathieu Magnin
parent e68f3332c1
commit 8b2366cb98

View file

@ -9,7 +9,7 @@ module NewGestionnaire
end
def follow
current_gestionnaire.followed_dossiers << dossier
current_gestionnaire.follow(dossier)
redirect_back(fallback_location: procedures_url)
end