Fix commit note notification

This commit is contained in:
Riyad Preukschas 2013-01-02 20:50:24 +01:00
parent 7335f366dc
commit 621c6b8533
2 changed files with 3 additions and 3 deletions

View file

@ -62,12 +62,12 @@ class Notify < ActionMailer::Base
# Note
#
def note_commit_email(recipient_id, note_id)
def note_commit_email(commit_autor_email, note_id)
@note = Note.find(note_id)
@commit = @note.noteable
@commit = CommitDecorator.decorate(@commit)
@project = @note.project
mail(to: recipient(recipient_id), subject: subject("note for commit #{@commit.short_id}", @commit.title))
mail(to: recipient(commit_autor_email), subject: subject("note for commit #{@commit.short_id}", @commit.title))
end
def note_issue_email(recipient_id, note_id)