From 229c688664066d470d6ef340a5f19af583a91c5a Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Tue, 5 Jan 2021 16:54:51 -0600 Subject: [PATCH] Fix for add_template_helper being removed without announcement Explained at: https://stackoverflow.com/questions/65528227/the-method-add-template-helper-does-not-seem-to-work-in-rails-6-1 --- app/mailers/base_mailer.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/mailers/base_mailer.rb b/app/mailers/base_mailer.rb index f567f191..a3ba45df 100644 --- a/app/mailers/base_mailer.rb +++ b/app/mailers/base_mailer.rb @@ -5,7 +5,8 @@ class BaseMailer < ActionMailer::Base include Roadie::Rails::Automatic include Devise::Controllers::UrlHelpers - add_template_helper(ApplicationHelper) + include ApplicationHelper + helper ApplicationHelper default from: Houdini.support_email layout 'email' end