Use goddamn parentheses
This commit is contained in:
parent
bcc2970de4
commit
bb8adba9b9
1 changed files with 4 additions and 4 deletions
|
@ -31,7 +31,7 @@ class NotificationMailer < ApplicationMailer
|
||||||
end
|
end
|
||||||
|
|
||||||
def new_answer(dossier)
|
def new_answer(dossier)
|
||||||
send_mail dossier, "Nouveau message pour votre dossier demarches-simplifiees.fr nº #{dossier.id}"
|
send_mail(dossier, "Nouveau message pour votre dossier demarches-simplifiees.fr nº #{dossier.id}")
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
@ -39,8 +39,8 @@ class NotificationMailer < ApplicationMailer
|
||||||
def send_notification(dossier, mail_template)
|
def send_notification(dossier, mail_template)
|
||||||
vars_mailer(dossier)
|
vars_mailer(dossier)
|
||||||
|
|
||||||
@subject = mail_template.subject_for_dossier dossier
|
@subject = mail_template.subject_for_dossier(dossier)
|
||||||
@body = mail_template.body_for_dossier dossier
|
@body = mail_template.body_for_dossier(dossier)
|
||||||
|
|
||||||
create_commentaire_for_notification
|
create_commentaire_for_notification
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ class NotificationMailer < ApplicationMailer
|
||||||
end
|
end
|
||||||
|
|
||||||
def send_mail(dossier, subject)
|
def send_mail(dossier, subject)
|
||||||
vars_mailer dossier
|
vars_mailer(dossier)
|
||||||
|
|
||||||
mail(subject: subject)
|
mail(subject: subject)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue