Procedure: update -> update!
This commit is contained in:
parent
7a322266fa
commit
f2f3c54147
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue