prevent pipeline emails from using the normal layout wrapper

This commit is contained in:
Mike Greiling 2016-10-07 18:30:42 -05:00
parent 1fe0861051
commit a4d63a91a2

View file

@ -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