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

@ -34,8 +34,8 @@ class MailerObserver < ActiveRecord::Observer
Notify.note_commit_email(u, note).deliver
when "Issue" then
Notify.note_issue_email(u, note).deliver
when "MergeRequest"
true # someone should write email notification
when "MergeRequest" then
Notify.note_merge_request_email(u, note).deliver
when "Snippet"
true
else