8 lines
216 B
Ruby
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
|