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