diff options
author | Mike Greiling <mike@pixelcog.com> | 2016-10-07 18:30:42 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2016-10-07 18:30:42 -0500 |
commit | a4d63a91a24780f77a28d122a60545936e8346e9 (patch) | |
tree | 6c793f512218d3f0f8ae55df3e5701ca79f25cc4 /app/mailers | |
parent | 1fe08610518858d86dddb1b118d121a138de3f84 (diff) | |
download | gitlab-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.rb | 5 |
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 |