]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/notes_controller.rb
Use deliver_later for all email sending
[rails.git] / app / controllers / notes_controller.rb
index 95566a1a1a5ff179f1019dea52eed6d20235e8c7..9cdc38446ca5df7335528d34aeed3bbe5bbae4ad 100644 (file)
@@ -387,7 +387,7 @@ class NotesController < ApplicationController
     comment = note.comments.create!(attributes)
 
     note.comments.map(&:author).uniq.each do |user|
-      Notifier.note_comment_notification(comment, user).deliver_now if notify && user && user != current_user && user.visible?
+      Notifier.note_comment_notification(comment, user).deliver_later if notify && user && user != current_user && user.visible?
     end
   end
 end