mailers: streamline the NotificationMailer

Notifications are now only for demarche-templated emails.
This commit is contained in:
Pierre de La Morinerie 2018-11-20 10:50:25 +00:00 committed by gregoirenovel
parent 1d1a15bf70
commit e5303fd986
10 changed files with 49 additions and 33 deletions

View file

@ -48,7 +48,7 @@ class Commentaire < ApplicationRecord
end
def notify_user
NotificationMailer.new_answer(dossier).deliver_later
DossierMailer.notify_new_answer(dossier).deliver_later
end
def is_virus_free?