Follow: use follow instead of toggle_follow_dossier
This commit is contained in:
parent
6cff044a50
commit
f07b6eab53
1 changed files with 1 additions and 3 deletions
|
@ -44,9 +44,7 @@ class CommentairesController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
if is_gestionnaire?
|
if is_gestionnaire?
|
||||||
unless current_gestionnaire.follow? @commentaire.dossier
|
current_gestionnaire.follow(@commentaire.dossier)
|
||||||
current_gestionnaire.toggle_follow_dossier @commentaire.dossier
|
|
||||||
end
|
|
||||||
|
|
||||||
redirect_to url_for(controller: 'backoffice/dossiers', action: :show, id: params['dossier_id'])
|
redirect_to url_for(controller: 'backoffice/dossiers', action: :show, id: params['dossier_id'])
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue