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:
parent
5fe75649b3
commit
bb22360d1a
4 changed files with 14 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue