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:
authorhttp://jneen.net/ <jneen@jneen.net>2017-07-31 19:30:35 +0300
committerhttp://jneen.net/ <jneen@jneen.net>2017-08-03 19:07:18 +0300
commit19309b970556797027e57c212d9b9aa053c36892 (patch)
tree534566b686ad4d3de6ed075f2d11a5863ca4863b /app/services/notification_service.rb
parent3829d7245a446fe80745f5e7c082e005fc013365 (diff)
default the project to target.project
Diffstat (limited to 'app/services/notification_service.rb')
-rw-r--r--app/services/notification_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb
index e9a67cac4d6..f5366b9ceab 100644
--- a/app/services/notification_service.rb
+++ b/app/services/notification_service.rb
@@ -272,7 +272,7 @@ class NotificationService
end
def project_was_moved(project, old_path_with_namespace)
- recipients = NotificationRecipientService.notifiable_users(project.team.members, project, :mention)
+ recipients = NotificationRecipientService.notifiable_users(project.team.members, :mention, project: project)
recipients.each do |recipient|
mailer.project_was_moved_email(
@@ -307,7 +307,7 @@ class NotificationService
return unless mailer.respond_to?(email_template)
recipients ||= NotificationRecipientService.notifiable_users(
- [pipeline.user], pipeline.project, :watch,
+ [pipeline.user], :watch,
custom_action: :"#{pipeline.status}_pipeline",
read_ability: :read_build,
target: pipeline