From: Jean-Philippe Lang Date: Wed, 10 Oct 2018 18:45:34 +0000 (+0000) Subject: Replaces remaining #deliver with #deliver_later (#26791). X-Git-Tag: 4.0.0~93 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=21e11bd9cd451dfca465487c4447fa6a9f0eb155;p=redmine.git Replaces remaining #deliver with #deliver_later (#26791). git-svn-id: http://svn.redmine.org/redmine/trunk@17590 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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