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
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
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