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:
authorblackst0ne <blackst0ne.ru@gmail.com>2018-04-07 09:02:45 +0300
committerblackst0ne <blackst0ne.ru@gmail.com>2018-04-07 09:02:45 +0300
commitb8c098ecfa68f515ce76dba129c3f0ac3b3638b9 (patch)
tree56c879946129f6b4b79166b95a6c45db90e0e9df /app/services
parentaade8b3652573db40e7b777c72caa922b0bc12ef (diff)
[Rails5] Fix spec/requests/projects/cycle_analytics_events_spec.rb
Diffstat (limited to 'app/services')
-rw-r--r--app/services/notification_recipient_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/notification_recipient_service.rb b/app/services/notification_recipient_service.rb
index e4be953e810..ed070cfaa54 100644
--- a/app/services/notification_recipient_service.rb
+++ b/app/services/notification_recipient_service.rb
@@ -51,7 +51,7 @@ module NotificationRecipientService
def add_recipients(users, type, reason)
if users.is_a?(ActiveRecord::Relation)
- users = users.includes(:notification_settings)
+ users = users.includes(:notification_settings).to_a
end
users = Array(users)