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
|
end
|
||||||
|
|
||||||
def after_archive
|
def after_archive
|
||||||
update(archived_at: Time.now)
|
update!(archived_at: Time.now)
|
||||||
end
|
end
|
||||||
|
|
||||||
def after_hide
|
def after_hide
|
||||||
now = Time.now
|
now = Time.now
|
||||||
update(hidden_at: now)
|
update!(hidden_at: now)
|
||||||
procedure_path&.hide!
|
procedure_path&.hide!
|
||||||
dossiers.update_all(hidden_at: now)
|
dossiers.update_all(hidden_at: now)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue