notification for note for merge request

This commit is contained in:
Valery Sizov 2011-12-18 16:29:58 +02:00
parent a66d9b4c76
commit 6a0defc3ca
3 changed files with 33 additions and 2 deletions

View file

@ -30,6 +30,14 @@ class Notify < ActionMailer::Base
@commit = @project.repo.commits(note.noteable_id).first
mail(:to => @user.email, :subject => "gitlab | #{@note.project.name} ")
end
def note_merge_request_email(user, note)
@user = user
@note = note
@project = note.project
@merge_request = note.noteable
mail(:to => @user.email, :subject => "gitlab | #{@note.project.name} ")
end
def note_issue_email(user, note)
@user = user