summaryrefslogtreecommitdiff
path: root/app/mailers
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-09-13 19:09:53 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-09-13 19:09:53 +0800
commit4add6ca6ecb42fe08c0c1fbb1e7d5cf437e8ee3b (patch)
tree8e368eb60bd8a05d8553508563333ac0b153f352 /app/mailers
parent1b1c6ebf49c7ea9f838bff0f13f53808845d8979 (diff)
downloadgitlab-ce-4add6ca6ecb42fe08c0c1fbb1e7d5cf437e8ee3b.tar.gz
Try to integrate the email into notification system
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/emails/pipelines.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/mailers/emails/pipelines.rb b/app/mailers/emails/pipelines.rb
index 643b947a049..e132105807a 100644
--- a/app/mailers/emails/pipelines.rb
+++ b/app/mailers/emails/pipelines.rb
@@ -1,18 +1,18 @@
module Emails
module Pipelines
- def pipeline_succeeded_email(params, to)
- pipeline_mail(params, to, 'succeeded')
+ def pipeline_success_email(pipeline, to)
+ pipeline_mail(pipeline, to, 'succeeded')
end
- def pipeline_failed_email(params, to)
- pipeline_mail(params, to, 'failed')
+ def pipeline_failed_email(pipeline, to)
+ pipeline_mail(pipeline, to, 'failed')
end
private
- def pipeline_mail(params, to, status)
- @project = params.project
- @pipeline = params.pipeline
+ def pipeline_mail(pipeline, to, status)
+ @project = pipeline.project
+ @pipeline = pipeline
add_headers
mail(to: to, subject: pipeline_subject(status))