summaryrefslogtreecommitdiff
path: root/app/observers/note_observer.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-01 08:59:30 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-01 08:59:30 +0200
commitcc2484c3e61764adbb61d78c97148c41cf346cd1 (patch)
tree93ed7a78ca5dbfeedd0ead2d9af5b16d9091c2ae /app/observers/note_observer.rb
parent5857a7a9ce6f9bd37b633d48074778bcbde880a4 (diff)
downloadgitlab-ce-cc2484c3e61764adbb61d78c97148c41cf346cd1.tar.gz
Fix sending commit note email to id instead email
Diffstat (limited to 'app/observers/note_observer.rb')
-rw-r--r--app/observers/note_observer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/observers/note_observer.rb b/app/observers/note_observer.rb
index 2ec644ef7c1..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.delay.note_commit_email(note.noteable.author_email, note.id)
+ Notify.delay.note_commit_email(note.commit_author.id, note.id)
else
# Otherwise ignore it
nil