diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-17 14:45:55 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-17 14:45:55 +0200 |
commit | d550933907a51aa6cf5ed8b042db2f7e3323fa8c (patch) | |
tree | bf3d1cc1dcb8176b3b072679501ade141b5e7bc4 /app/mailers | |
parent | 2428a0b2dd8e84e285df4b356ee6f1593204cd34 (diff) | |
download | gitlab-ce-d550933907a51aa6cf5ed8b042db2f7e3323fa8c.tar.gz |
Add new method to mailer for deliver emails with push info
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/mailers')
-rw-r--r-- | app/mailers/emails/projects.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/mailers/emails/projects.rb b/app/mailers/emails/projects.rb index 0e40450bfee..beecf15399c 100644 --- a/app/mailers/emails/projects.rb +++ b/app/mailers/emails/projects.rb @@ -13,5 +13,15 @@ module Emails mail(to: @user.email, subject: subject("Project was moved")) end + + def repository_push_email(project_id, recipient, branch, compare) + @project = Project.find project_id + @commits = compare.commits + @commit = compare.commit + @diffs = compare.diffs + @branch = branch + + mail(to: recipient, subject: subject("New push to repository")) + end end end |