summaryrefslogtreecommitdiffstats
path: root/app/models/mailer.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2018-10-10 18:45:34 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2018-10-10 18:45:34 +0000
commit21e11bd9cd451dfca465487c4447fa6a9f0eb155 (patch)
treeae77162060d6921e80d5320f518253aa8ff82cb6 /app/models/mailer.rb
parent717bef36a3b55aee2346926f2a67ed9566728f24 (diff)
downloadredmine-21e11bd9cd451dfca465487c4447fa6a9f0eb155.tar.gz
redmine-21e11bd9cd451dfca465487c4447fa6a9f0eb155.zip
Replaces remaining #deliver with #deliver_later (#26791).
git-svn-id: http://svn.redmine.org/redmine/trunk@17590 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/mailer.rb')
-rw-r--r--app/models/mailer.rb6
1 files 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