demarches-normaliennes/app/jobs/dossier_rebase_job.rb

9 lines
216 B
Ruby
Raw Normal View History

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