demarches-normaliennes/app/jobs/dossier_rebase_job.rb
2021-10-20 17:26:09 +02:00

8 lines
216 B
Ruby

class DossierRebaseJob < ApplicationJob
# If by the time the job runs the Dossier has been deleted, ignore the rebase
discard_on ActiveRecord::RecordNotFound
def perform(dossier)
dossier.rebase!
end
end