fix locale of invitation email subject #5231
This commit is contained in:
parent
926556c145
commit
93c6159c56
1 changed files with 2 additions and 2 deletions
|
|
@ -43,11 +43,11 @@ class Notifier < ActionMailer::Base
|
||||||
@locale = locale
|
@locale = locale
|
||||||
@invitation_code = invitation_code
|
@invitation_code = invitation_code
|
||||||
|
|
||||||
|
I18n.with_locale(locale) do
|
||||||
mail_opts = {:to => email, :from => AppConfig.mail.sender_address,
|
mail_opts = {:to => email, :from => AppConfig.mail.sender_address,
|
||||||
:subject => I18n.t('notifier.invited_you', :name => @inviter.name),
|
:subject => I18n.t('notifier.invited_you', :name => @inviter.name),
|
||||||
:host => AppConfig.pod_uri.host}
|
:host => AppConfig.pod_uri.host}
|
||||||
|
|
||||||
I18n.with_locale(locale) do
|
|
||||||
mail(mail_opts) do |format|
|
mail(mail_opts) do |format|
|
||||||
format.text { render :layout => nil }
|
format.text { render :layout => nil }
|
||||||
format.html { render :layout => nil }
|
format.html { render :layout => nil }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue