Fix sending commit note email to id instead email

This commit is contained in:
Dmitriy Zaporozhets 2013-02-01 08:59:30 +02:00
parent 5857a7a9ce
commit cc2484c3e6
2 changed files with 3 additions and 3 deletions

View file

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