Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2b4700b2
Commit
2b4700b2
authored
Nov 06, 2016
by
bogdanvlviv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use method helper instead of add_template_helper
parent
c392b0cc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
app/mailers/base_mailer.rb
app/mailers/base_mailer.rb
+2
-2
app/mailers/notify.rb
app/mailers/notify.rb
+6
-6
No files found.
app/mailers/base_mailer.rb
View file @
2b4700b2
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?
...
...
app/mailers/notify.rb
View file @
2b4700b2
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment