diff options
author | Valery Sizov <vsv2711@gmail.com> | 2011-12-17 20:07:28 +0400 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2011-12-17 20:07:28 +0400 |
commit | db582b638382f15f7e373fd79b90e4fc0f494a37 (patch) | |
tree | 6be2a01fc946ffdec9759a1fe0f1056a745024e1 /app/mailers | |
parent | 7713f7fefb4601b7ddede29d61fbf80e2b2929b8 (diff) |
Notification when created merge request
Diffstat (limited to 'app/mailers')
-rw-r--r-- | app/mailers/notify.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/mailers/notify.rb b/app/mailers/notify.rb index bcbe82c212d..2fb4e6a1fbc 100644 --- a/app/mailers/notify.rb +++ b/app/mailers/notify.rb @@ -38,4 +38,11 @@ class Notify < ActionMailer::Base @issue = note.noteable mail(:to => @user.email, :subject => "gitlab | #{@note.project.name} ") end + + def new_merge_request_email(merge_request) + @user = merge_request.assignee + @merge_request = merge_request + @project = merge_request.project + mail(:to => @user.email, :subject => "gitlab | #{@merge_request.title} ") + end end |