rename Dossier#modifier_annotations!

give a more accurate name to the method

Co-authored-by: clemkeirua <clement@keiruaprod.fr>
This commit is contained in:
Christophe Robillard 2020-07-28 14:22:56 +02:00
parent c772c3454c
commit 03e3e8fb1c
2 changed files with 2 additions and 2 deletions

View file

@ -197,7 +197,7 @@ module Instructeurs
dossier.last_champ_private_updated_at = Time.zone.now
end
dossier.save
dossier.modifier_annotations!(current_instructeur)
dossier.log_modifier_annotations!(current_instructeur)
redirect_to annotations_privees_instructeur_dossier_path(procedure, dossier)
end

View file

@ -615,7 +615,7 @@ class Dossier < ApplicationRecord
end
end
def modifier_annotations!(instructeur)
def log_modifier_annotations!(instructeur)
champs_private.filter(&:value_previously_changed?).each do |champ|
log_dossier_operation(instructeur, :modifier_annotation, champ)
end