feat(champ): add updated_by column
This commit is contained in:
parent
9de97c8593
commit
68c15ba99f
10 changed files with 25 additions and 19 deletions
|
@ -551,7 +551,7 @@ module Users
|
|||
end
|
||||
|
||||
def update_dossier_and_compute_errors
|
||||
@dossier.update_champs_attributes(champs_public_attributes_params, :public)
|
||||
@dossier.update_champs_attributes(champs_public_attributes_params, :public, updated_by: current_user.email)
|
||||
if @dossier.champs.any?(&:changed_for_autosave?)
|
||||
@dossier.last_champ_updated_at = Time.zone.now
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue