[Fix #1972] Always send mails asynchronously
This commit is contained in:
parent
cce00e19c6
commit
07b1c147d9
23 changed files with 45 additions and 32 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue