Use method helper instead of add_template_helper
This commit is contained in:
parent
c392b0cc24
commit
2b4700b2be
|
@ -1,6 +1,6 @@
|
|||
class BaseMailer < ActionMailer::Base
|
||||
add_template_helper ApplicationHelper
|
||||
add_template_helper GitlabMarkdownHelper
|
||||
helper ApplicationHelper
|
||||
helper GitlabMarkdownHelper
|
||||
|
||||
attr_accessor :current_user
|
||||
helper_method :current_user, :can?
|
||||
|
|
|
@ -10,12 +10,12 @@ class Notify < BaseMailer
|
|||
include Emails::Pipelines
|
||||
include Emails::Members
|
||||
|
||||
add_template_helper MergeRequestsHelper
|
||||
add_template_helper DiffHelper
|
||||
add_template_helper BlobHelper
|
||||
add_template_helper EmailsHelper
|
||||
add_template_helper MembersHelper
|
||||
add_template_helper GitlabRoutingHelper
|
||||
helper MergeRequestsHelper
|
||||
helper DiffHelper
|
||||
helper BlobHelper
|
||||
helper EmailsHelper
|
||||
helper MembersHelper
|
||||
helper GitlabRoutingHelper
|
||||
|
||||
def test_email(recipient_email, subject, body)
|
||||
mail(to: recipient_email,
|
||||
|
|
Loading…
Reference in New Issue