Skip to content
Snippets Groups Projects
Commit de36ca81 authored by Sean McGivern's avatar Sean McGivern
Browse files

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
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment