# Read about interceptors in http://guides.rubyonrails.org/action_mailer_basics.html#intercepting-emailsclassEmailTemplateInterceptorincludeGitlab::CurrentSettingsdefself.delivering_email(message)# Remove HTML part if HTML emails are disabled.unlesscurrent_application_settings.html_emails_enabled