We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2fe7124 + 1d98f94 commit 2f5595aCopy full SHA for 2f5595a
app/mailers/policy_manager/application_mailer.rb
@@ -6,8 +6,12 @@ class ApplicationMailer < ActionMailer::Base
6
# configurable mailer helpers
7
if Config.exporter.present?
8
Config.exporter.mail_helpers.each do |helpers|
9
- add_template_helper(helpers)
+ if Rails::VERSION::MAJOR >= 6 && Rails::VERSION::MINOR > 0
10
+ helper(helpers)
11
+ else
12
+ add_template_helper(helpers)
13
+ end
14
end
15
16
-end
17
+end
0 commit comments