diff options
author | http://jneen.net/ <jneen@jneen.net> | 2017-07-26 08:22:31 +0300 |
---|---|---|
committer | http://jneen.net/ <jneen@jneen.net> | 2017-08-03 19:06:15 +0300 |
commit | b69e81c3e993939228046516be897233dcaf4442 (patch) | |
tree | 1a2dad71a31ec7739f4dd59bac439bdfccc98abb /app/services/notification_service.rb | |
parent | 943baa13922a5a2b7aab5a46765846996f23486b (diff) |
rm the @builder argument and factor out .notifiable_users
Diffstat (limited to 'app/services/notification_service.rb')
-rw-r--r-- | app/services/notification_service.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb index b94921d2a08..a094d97a295 100644 --- a/app/services/notification_service.rb +++ b/app/services/notification_service.rb @@ -270,8 +270,7 @@ class NotificationService end def project_was_moved(project, old_path_with_namespace) - recipients = project.team.members - recipients = NotificationRecipientService.new(project).reject_muted_users(recipients) + recipients = NotificationRecipientService::Recipient.notifiable_users(project.team.members, project, :watch) recipients.each do |recipient| mailer.project_was_moved_email( |