Use deliver_later for all email sending
This commit is contained in:
parent
801522c5c3
commit
b54362d458
14 changed files with 452 additions and 334 deletions
|
@ -332,7 +332,7 @@ class ChangesetController < ApplicationController
|
|||
|
||||
# Notify current subscribers of the new comment
|
||||
changeset.subscribers.visible.each do |user|
|
||||
Notifier.changeset_comment_notification(comment, user).deliver_now if current_user != user
|
||||
Notifier.changeset_comment_notification(comment, user).deliver_later if current_user != user
|
||||
end
|
||||
|
||||
# Add the commenter to the subscribers if necessary
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue