We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cbb9a7 commit 45b85d7Copy full SHA for 45b85d7
1 file changed
app/mailers/user_mailer.rb
@@ -13,6 +13,7 @@ def email_confirmation(user, origin = nil, language = nil)
13
subject = "#{origin}: #{subject}" if origin
14
if origin
15
origin_name = origin.downcase.tr(' ', '_').gsub(/[\.\/]/, '')
16
+ origin_name += "_#{language}" if language
17
@url = base_url + confirm_email_path(@user.id, token.token, language: language, origin: CGI.escape(origin_name))
18
template_path = Rails.root.join('config', 'email_templates', 'user_mailer', 'email_confirmation')
19
html_template_path = template_path.join("#{origin_name}.html.erb")
0 commit comments