Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2015-11-30 12:21:10 +0300
committerValery Sizov <valery@gitlab.com>2015-11-30 12:21:10 +0300
commit461731f0769a826d00c4d5846ff6d2f55fd4b829 (patch)
tree4a645ed7f3d405d5aff4f939ea4c4aedd1447887 /app/services
parent7f214cee74796ceaf7b01bd6e133d4d54c5123db (diff)
fix notification_service specs
Diffstat (limited to 'app/services')
-rw-r--r--app/services/notification_service.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb
index 03fe8c8fe11..388a4defb26 100644
--- a/app/services/notification_service.rb
+++ b/app/services/notification_service.rb
@@ -148,7 +148,6 @@ class NotificationService
# build notify method like 'note_commit_email'
notify_method = "note_#{note.noteable_type.underscore}_email".to_sym
-
recipients.each do |recipient|
mailer.send(notify_method, recipient.id, note.id).deliver_later
end
@@ -371,7 +370,7 @@ class NotificationService
recipients = build_recipients(target, project, current_user)
recipients.each do |recipient|
- mailer.send(method, recipient.id, target.id, current_user.id).deliver
+ mailer.send(method, recipient.id, target.id, current_user.id).deliver_later
end
end
@@ -396,7 +395,7 @@ class NotificationService
recipients = build_recipients(target, project, current_user)
recipients.each do |recipient|
- mailer.send(method, recipient.id, target.id, status, current_user.id).deliver
+ mailer.send(method, recipient.id, target.id, status, current_user.id).deliver_later
end
end