Make Notify#note_merge_request_email resque friendly

Update method to take ids and then perform #finds itself during mailer
queue worker kick-off.
This commit is contained in:
Robb Kidd 2012-05-15 18:48:00 -04:00
parent 5fe75649b3
commit bb22360d1a
4 changed files with 14 additions and 11 deletions

View file

@ -36,7 +36,7 @@ class MailerObserver < ActiveRecord::Observer
when "Issue" then
Notify.note_issue_email(u, note).deliver
when "MergeRequest" then
Notify.note_merge_request_email(u, note).deliver
Notify.note_merge_request_email(u.id, note.id).deliver
when "Snippet"
true
else