From 21e11bd9cd451dfca465487c4447fa6a9f0eb155 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 10 Oct 2018 18:45:34 +0000 Subject: [PATCH] Replaces remaining #deliver with #deliver_later (#26791). git-svn-id: http://svn.redmine.org/redmine/trunk@17590 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/mailer.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/mailer.rb b/app/models/mailer.rb index 50b6ca744..fa566a7a0 100644 --- a/app/models/mailer.rb +++ b/app/models/mailer.rb @@ -88,7 +88,7 @@ class Mailer < ActionMailer::Base def self.deliver_issue_add(issue) users = issue.notified_users | issue.notified_watchers users.each do |user| - issue_add(user, issue).deliver + issue_add(user, issue).deliver_later end end @@ -125,7 +125,7 @@ class Mailer < ActionMailer::Base journal.notes? || journal.visible_details(user).any? end users.each do |user| - issue_edit(user, journal).deliver + issue_edit(user, journal).deliver_later end end @@ -584,7 +584,7 @@ class Mailer < ActionMailer::Base issues_by_assignee.each do |assignee, issues| if assignee.is_a?(User) && assignee.active? && issues.present? visible_issues = issues.select {|i| i.visible?(assignee)} - reminder(assignee, visible_issues, days).deliver if visible_issues.present? + reminder(assignee, visible_issues, days).deliver_later if visible_issues.present? end end end -- 2.39.5