Commit 2b4700b2 authored by bogdanvlviv's avatar bogdanvlviv

Use method helper instead of add_template_helper

parent c392b0cc
class BaseMailer < ActionMailer::Base class BaseMailer < ActionMailer::Base
add_template_helper ApplicationHelper helper ApplicationHelper
add_template_helper GitlabMarkdownHelper helper GitlabMarkdownHelper
attr_accessor :current_user attr_accessor :current_user
helper_method :current_user, :can? helper_method :current_user, :can?
......
...@@ -10,12 +10,12 @@ class Notify < BaseMailer ...@@ -10,12 +10,12 @@ class Notify < BaseMailer
include Emails::Pipelines include Emails::Pipelines
include Emails::Members include Emails::Members
add_template_helper MergeRequestsHelper helper MergeRequestsHelper
add_template_helper DiffHelper helper DiffHelper
add_template_helper BlobHelper helper BlobHelper
add_template_helper EmailsHelper helper EmailsHelper
add_template_helper MembersHelper helper MembersHelper
add_template_helper GitlabRoutingHelper helper GitlabRoutingHelper
def test_email(recipient_email, subject, body) def test_email(recipient_email, subject, body)
mail(to: recipient_email, mail(to: recipient_email,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment