[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

@ -34,7 +34,7 @@ class Avis < ApplicationRecord
private
def notify_gestionnaire
AvisMailer.avis_invitation(self).deliver_now
AvisMailer.avis_invitation(self).deliver_later
end
def try_to_assign_gestionnaire