]> source.dussan.org Git - redmine.git/commitdiff
Replaces remaining #deliver with #deliver_later (#26791).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 10 Oct 2018 18:45:34 +0000 (18:45 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 10 Oct 2018 18:45:34 +0000 (18:45 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@17590 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/mailer.rb

index 50b6ca744b5d7f7468a61ca07f09f7c816e06947..fa566a7a0619f0bf8a59526cc7b80f1056571b36 100644 (file)
@@ -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