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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
51b81d7f
Commit
51b81d7f
authored
Jul 16, 2018
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Register all action mailer interceptors in a single place
parent
e682d941
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
config/initializers/action_mailer_hooks.rb
config/initializers/action_mailer_hooks.rb
+7
-0
config/initializers/additional_headers_interceptor.rb
config/initializers/additional_headers_interceptor.rb
+0
-2
config/initializers/email_template_interceptor.rb
config/initializers/email_template_interceptor.rb
+0
-1
No files found.
config/initializers/
disable_email_interceptor
.rb
→
config/initializers/
action_mailer_hooks
.rb
View file @
51b81d7f
...
@@ -2,3 +2,6 @@ unless Gitlab.config.gitlab.email_enabled
...
@@ -2,3 +2,6 @@ unless Gitlab.config.gitlab.email_enabled
ActionMailer
::
Base
.
register_interceptor
(
::
Gitlab
::
Email
::
Hook
::
DisableEmailInterceptor
)
ActionMailer
::
Base
.
register_interceptor
(
::
Gitlab
::
Email
::
Hook
::
DisableEmailInterceptor
)
ActionMailer
::
Base
.
logger
=
nil
ActionMailer
::
Base
.
logger
=
nil
end
end
ActionMailer
::
Base
.
register_interceptor
(
::
Gitlab
::
Email
::
Hook
::
AdditionalHeadersInterceptor
)
ActionMailer
::
Base
.
register_interceptor
(
::
Gitlab
::
Email
::
Hook
::
EmailTemplateInterceptor
)
config/initializers/additional_headers_interceptor.rb
deleted
100644 → 0
View file @
e682d941
ActionMailer
::
Base
.
register_interceptor
(
::
Gitlab
::
Email
::
Hook
::
AdditionalHeadersInterceptor
)
config/initializers/email_template_interceptor.rb
deleted
100644 → 0
View file @
e682d941
ActionMailer
::
Base
.
register_interceptor
(
::
Gitlab
::
Email
::
Hook
::
EmailTemplateInterceptor
)
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