Add explicit join references in UserMailer

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/3194/head
Alex Coles 9 years ago
parent 0942d7335b
commit 63904f1d30
  1. 1
      app/mailers/user_mailer.rb

@ -445,6 +445,7 @@ class DueIssuesReminder
issues_by_assignee = WorkPackage.includes(:status, :assigned_to, :project, :type)
.where(s.conditions)
.references(:projects)
.group_by(&:assigned_to)
issues_by_assignee.each do |assignee, issues|
UserMailer.reminder_mail(assignee, issues, @days).deliver if assignee && assignee.active?

Loading…
Cancel
Save