Improve a variable name
This commit is contained in:
parent
585a5bcaba
commit
23f5582907
1 changed files with 3 additions and 3 deletions
|
@ -6,10 +6,10 @@ class NotificationMailer < ApplicationMailer
|
||||||
def send_notification dossier, mail_template
|
def send_notification dossier, mail_template
|
||||||
vars_mailer(dossier)
|
vars_mailer(dossier)
|
||||||
|
|
||||||
@obj = mail_template.object_for_dossier dossier
|
@object = mail_template.object_for_dossier dossier
|
||||||
@body = mail_template.body_for_dossier dossier
|
@body = mail_template.body_for_dossier dossier
|
||||||
|
|
||||||
mail(subject: @obj) { |format| format.html { @body } }
|
mail(subject: @object) { |format| format.html { @body } }
|
||||||
end
|
end
|
||||||
|
|
||||||
def new_answer dossier
|
def new_answer dossier
|
||||||
|
@ -22,7 +22,7 @@ class NotificationMailer < ApplicationMailer
|
||||||
Commentaire.create(
|
Commentaire.create(
|
||||||
dossier: @dossier,
|
dossier: @dossier,
|
||||||
email: I18n.t("dynamics.contact_email"),
|
email: I18n.t("dynamics.contact_email"),
|
||||||
body: ["[#{@obj}]", @body].join("<br><br>")
|
body: ["[#{@object}]", @body].join("<br><br>")
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue