[Fix #1972] Always send mails asynchronously

This commit is contained in:
Frederic Merizen 2018-05-25 18:05:28 +02:00
parent cce00e19c6
commit 07b1c147d9
23 changed files with 45 additions and 32 deletions

View file

@ -42,7 +42,7 @@ class Commentaire < ApplicationRecord
end
def notify_user
NotificationMailer.new_answer(dossier).deliver_now!
NotificationMailer.new_answer(dossier).deliver_later
end
def is_virus_free?