[Fix #762] move dossier instruction -> dossier annotations_privees

This commit is contained in:
Simon Lehericey 2017-09-27 12:08:47 +02:00
parent a421f0257e
commit f5a227fa92
6 changed files with 9 additions and 10 deletions

View file

@ -14,9 +14,8 @@ module NewGestionnaire
dossier.notifications.messagerie.mark_as_read
end
def instruction
def annotations_privees
@dossier = dossier
dossier.notifications.instruction.mark_as_read
end
def avis
@ -78,7 +77,7 @@ module NewGestionnaire
def update_annotations
dossier = current_gestionnaire.dossiers.includes(champs_private: :type_de_champ).find(params[:dossier_id])
dossier.update_attributes(champs_private_params)
redirect_to instruction_dossier_path(dossier.procedure, dossier)
redirect_to annotations_privees_dossier_path(dossier.procedure, dossier)
end
private