summaryrefslogtreecommitdiff
path: root/app/observers/note_observer.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-09 08:44:05 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-09 08:44:05 +0300
commit71bd9568669d18bc04c551a603a04af2ea99328c (patch)
tree1ae9e5d5564239a48dd6da6c0c577192e43251c9 /app/observers/note_observer.rb
parentc7bb3a1f726be189ccce51bdd631b26eb4f64db1 (diff)
downloadgitlab-ce-71bd9568669d18bc04c551a603a04af2ea99328c.tar.gz
email via sidekiq. start and stop rake tasks
Diffstat (limited to 'app/observers/note_observer.rb')
-rw-r--r--app/observers/note_observer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/observers/note_observer.rb b/app/observers/note_observer.rb
index fe01efcaac2..3f6d1dfcb70 100644
--- a/app/observers/note_observer.rb
+++ b/app/observers/note_observer.rb
@@ -11,7 +11,7 @@ class NoteObserver < ActiveRecord::Observer
notify_team(note)
elsif note.notify_author
# Notify only author of resource
- Notify.note_commit_email(note.commit_author.id, note.id).deliver
+ Notify.delay.note_commit_email(note.commit_author.id, note.id)
else
# Otherwise ignore it
nil
@@ -26,7 +26,7 @@ class NoteObserver < ActiveRecord::Observer
if Notify.respond_to? notify_method
team_without_note_author(note).map do |u|
- Notify.send(notify_method, u.id, note.id).deliver
+ Notify.delay.send(notify_method, u.id, note.id)
end
end
end