parent
b927ab4568
commit
a08f170dbd
11 changed files with 39 additions and 25 deletions
|
@ -46,10 +46,8 @@ class NotificationMailer < ApplicationMailer
|
|||
end
|
||||
|
||||
def create_commentaire_for_notification(dossier, subject, body)
|
||||
Commentaire.create(
|
||||
dossier: dossier,
|
||||
email: CONTACT_EMAIL,
|
||||
body: ["[#{subject}]", body].join("<br><br>")
|
||||
)
|
||||
params = { body: ["[#{subject}]", body].join("<br><br>") }
|
||||
commentaire = CommentaireService.build_with_email(CONTACT_EMAIL, dossier, params)
|
||||
commentaire.save!
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue