Commit 351f9de9 authored by Jasper Maes's avatar Jasper Maes

Rails 5 fix product array method delagation by manually calling .to_a in NotificationService

parent f9d07908
......@@ -49,7 +49,7 @@ module EE
recipients = project.group.members.active_without_invites_and_requests.owners_and_masters
end
recipients.product(alerts).each do |recipient, alert|
recipients.to_a.product(alerts).each do |recipient, alert|
mailer.prometheus_alert_fired_email(project.id, recipient.user.id, alert).deliver_later
end
end
......
---
title: Rails 5 fix product array method delagation by manually calling .to_a in NotificationService
merge_request: 6753
author: Jasper Maes
type: fixed
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