summaryrefslogtreecommitdiff
path: root/app/mailers
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2016-10-07 18:30:42 -0500
committerMike Greiling <mike@pixelcog.com>2016-10-07 18:30:42 -0500
commita4d63a91a24780f77a28d122a60545936e8346e9 (patch)
tree6c793f512218d3f0f8ae55df3e5701ca79f25cc4 /app/mailers
parent1fe08610518858d86dddb1b118d121a138de3f84 (diff)
downloadgitlab-ce-a4d63a91a24780f77a28d122a60545936e8346e9.tar.gz
prevent pipeline emails from using the normal layout wrapper
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/emails/pipelines.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/mailers/emails/pipelines.rb b/app/mailers/emails/pipelines.rb
index 941ba2643ab..5296e6fc61b 100644
--- a/app/mailers/emails/pipelines.rb
+++ b/app/mailers/emails/pipelines.rb
@@ -19,7 +19,10 @@ module Emails
target_branch: @project.default_branch)
add_headers
- mail(to: to, subject: pipeline_subject(status))
+ mail(to: to, subject: pipeline_subject(status)) do |format|
+ format.html { render layout: false }
+ format.text
+ end
end
def add_headers