Use Procedure#archive instead of duplicating code

This commit is contained in:
gregoirenovel 2017-06-27 16:57:25 +02:00
parent 0ec3855f8d
commit cf573a1ec6

View file

@ -7,7 +7,7 @@ class AutoArchiveProcedureWorker
dossier.received!
end
procedure.update_attributes!(archived: true)
procedure.archive
end
end
end