Skip to content

Commit 2f5595a

Browse files
authored
Merge pull request #56 from prey/fix/rails-6-1
Logic with rails 6.1 and minor
2 parents 2fe7124 + 1d98f94 commit 2f5595a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/mailers/policy_manager/application_mailer.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ class ApplicationMailer < ActionMailer::Base
66
# configurable mailer helpers
77
if Config.exporter.present?
88
Config.exporter.mail_helpers.each do |helpers|
9-
add_template_helper(helpers)
9+
if Rails::VERSION::MAJOR >= 6 && Rails::VERSION::MINOR > 0
10+
helper(helpers)
11+
else
12+
add_template_helper(helpers)
13+
end
1014
end
1115
end
1216
end
13-
end
17+
end

0 commit comments

Comments
 (0)