Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Kiesel <james.kiesel@gmail.com>2015-01-20 06:41:26 +0300
committerJames Kiesel <james.kiesel@gmail.com>2015-01-20 06:51:08 +0300
commit7bbd9138de7d60b25d8b5d3ca443c141b1a25b54 (patch)
treebc796554eb8a6ae118435909d29ebedb73ed86c6 /app/mailers
parent65020004294a5982f36bb080c942e97da16abf18 (diff)
Fix bad email formatting
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/export_mailer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/mailers/export_mailer.rb b/app/mailers/export_mailer.rb
index 8559fa8b1..6d36b4d8f 100644
--- a/app/mailers/export_mailer.rb
+++ b/app/mailers/export_mailer.rb
@@ -4,7 +4,7 @@ class ExportMailer < ActionMailer::Base
def export_complete_for(user)
@user = user
- mail(to: @user.email, subject: I18n.t('notifier.export_email.subject')) do |format|
+ mail(to: @user.email, subject: I18n.t('notifier.export_email.subject', name: @user.name)) do |format|
format.html { render 'users/export_email' }
format.text { render 'users/export_email' }
end.deliver
@@ -13,7 +13,7 @@ class ExportMailer < ActionMailer::Base
def export_failure_for(user)
@user = user
- mail(to: @user.email, subject: I18n.t('notifier.export_failure_email.subject')) do |format|
+ mail(to: @user.email, subject: I18n.t('notifier.export_failure_email.subject', name: @user.name)) do |format|
format.html { render 'users/export_failure_email' }
format.text { render 'users/export_failure_email' }
end.deliver