I want to use the methods I defined in app/helpers/annotations_helper.rb
in my ReportMailer views (app/views/report_mailer/usage_report.text.html.erb
in my case for Rails4, i do like this:
# app/mailers/application_mailer.rb
class ApplicationMailer < ActionMailer::Base
add_template_helper ApplicationHelper
...
end
and
# app/mailers/user_mailer.rb
class AccountMailer < ApplicationMailer
def some_method(x, y)
end
end
so that you do not have to specify add_template_helper
everywhere.