diff options
author | Ruben Davila <rdavila84@gmail.com> | 2016-11-29 01:00:03 +0300 |
---|---|---|
committer | Ruben Davila <rdavila84@gmail.com> | 2016-11-29 01:00:03 +0300 |
commit | b62e2bedbfa49aacfc4847049aa589f045af15ce (patch) | |
tree | 6bf1896177f66219f019beda752261fa7b99cea1 /config | |
parent | 5c6d3a99efa1d29291f0b58655d9fc7febb970f8 (diff) |
Add new configuration setting to enable/disable HTML emails.
This new global setting will allow admins to specify if HTML emails should be sent or not,
this is basically useful when system administrators want to save some disk space by avoiding
emails in HTML format and using only the Plain Text version.
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/email_template_interceptor.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/initializers/email_template_interceptor.rb b/config/initializers/email_template_interceptor.rb new file mode 100644 index 00000000000..f195ca9bcd6 --- /dev/null +++ b/config/initializers/email_template_interceptor.rb @@ -0,0 +1,2 @@ +# Interceptor in lib/email_template_interceptor.rb +ActionMailer::Base.register_interceptor(EmailTemplateInterceptor) |