demarches-normaliennes/app/jobs/notify_new_answer_with_delay_job.rb

11 lines
269 B
Ruby
Raw Normal View History

class NotifyNewAnswerWithDelayJob < ApplicationJob
queue_as :exports # for now?
discard_on ActiveRecord::RecordNotFound
def perform(dossier, body, commentaire)
return if commentaire.soft_deleted?
DossierMailer.notify_new_answer(dossier, body)
end
end