Gestionnaire: add unfollow method

This commit is contained in:
Simon Lehericey 2017-10-05 14:10:49 +02:00
parent 01da457ad0
commit 19b3416361
3 changed files with 19 additions and 1 deletions

View file

@ -32,7 +32,7 @@ module NewGestionnaire
end
def unfollow
current_gestionnaire.followed_dossiers.delete(dossier)
current_gestionnaire.unfollow(dossier)
flash.notice = "Vous ne suivez plus le dossier nº #{dossier.id}"
redirect_back(fallback_location: procedures_url)