rename Dossier#modifier_annotations!
give a more accurate name to the method Co-authored-by: clemkeirua <clement@keiruaprod.fr>
This commit is contained in:
parent
c772c3454c
commit
03e3e8fb1c
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue