10 lines
312 B
Ruby
10 lines
312 B
Ruby
class NotifyNewAnswerWithDelayJob < ApplicationJob
|
|
queue_as :mailers # use default queue for email, same priority
|
|
|
|
discard_on ActiveRecord::RecordNotFound
|
|
|
|
def perform(dossier, body, commentaire)
|
|
return if commentaire.discarded?
|
|
DossierMailer.notify_new_answer(dossier, body).deliver_now
|
|
end
|
|
end
|