Commit de36ca81 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'blackst0ne-rails5-fix-frozen-array' into 'master'

[Rails5] Fix `can't modify frozen Array` errors

See merge request gitlab-org/gitlab-ce!18239
parents f22df3e9 58dd4a09
......@@ -54,8 +54,7 @@ module NotificationRecipientService
users = users.includes(:notification_settings)
end
users = Array(users)
users.compact!
users = Array(users).compact
recipients.concat(users.map { |u| make_recipient(u, type, reason) })
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment