From 389f8f824909d60b7560248465416bd4bed92b6b Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Mon, 17 Apr 2017 18:16:32 -0400 Subject: Instance helper to replace site title helper (#2038) * Move site title helper to instance helper (name change only) * Remove newline in tag * Add site_hostname helper method to wrap up local_domain value * Use site_hostname helper in places that need local_domain value --- app/mailers/application_mailer.rb | 1 + app/mailers/user_mailer.rb | 2 ++ 2 files changed, 3 insertions(+) (limited to 'app/mailers') diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb index 0d9f10a08..e5dbfeeda 100644 --- a/app/mailers/application_mailer.rb +++ b/app/mailers/application_mailer.rb @@ -3,4 +3,5 @@ class ApplicationMailer < ActionMailer::Base default from: ENV.fetch('SMTP_FROM_ADDRESS') { 'notifications@localhost' } layout 'mailer' + helper :instance end diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index 64ca92a3a..6abf9c9ca 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -4,6 +4,8 @@ class UserMailer < Devise::Mailer default from: ENV.fetch('SMTP_FROM_ADDRESS') { 'notifications@localhost' } layout 'mailer' + helper :instance + def confirmation_instructions(user, token, _opts = {}) @resource = user @token = token -- cgit