Procedure: update -> update!

This commit is contained in:
Paul Chavard 2018-09-07 17:38:24 +01:00
parent 7a322266fa
commit f2f3c54147

View file

@ -362,12 +362,12 @@ class Procedure < ApplicationRecord
end
def after_archive
update(archived_at: Time.now)
update!(archived_at: Time.now)
end
def after_hide
now = Time.now
update(hidden_at: now)
update!(hidden_at: now)
procedure_path&.hide!
dossiers.update_all(hidden_at: now)
end