diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-06-10 12:29:23 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-06-10 12:29:23 +0300 |
commit | 525fa6c11ba739968c1af5b3dbd69a23c3834811 (patch) | |
tree | 18114b0d8a368b184da3cc452adb0491925b754a | |
parent | 7edf65d1ee9e65e5d5d2bde573936715b46e250d (diff) | |
download | gitlab-ce-525fa6c11ba739968c1af5b3dbd69a23c3834811.tar.gz |
Fix tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r-- | app/services/notification_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb index 06140c5afeb..3547552df8e 100644 --- a/app/services/notification_service.rb +++ b/app/services/notification_service.rb @@ -254,7 +254,7 @@ class NotificationService # Remove users with disabled notifications from array # Also remove duplications and nil recipients def reject_muted_users(users, project = nil) - users = users.compact.uniq + users = users.to_a.compact.uniq users.reject do |user| next user.notification.disabled? unless project |