diff options
author | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-02-10 10:59:39 +0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-02-10 10:59:39 +0800 |
commit | a769204ff489bc750c4931ecdb22ef055eac042a (patch) | |
tree | 467e0e76f8c79ecb85d9bfe18bfe63610e767af0 /app/mailers | |
parent | adcfeae1614e208a960ab99ba817380856563435 (diff) | |
download | gitlab-ce-a769204ff489bc750c4931ecdb22ef055eac042a.tar.gz |
Improved commit author notification
Diffstat (limited to 'app/mailers')
-rw-r--r-- | app/mailers/notify.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/mailers/notify.rb b/app/mailers/notify.rb index 6f40812577d..50ccb991a44 100644 --- a/app/mailers/notify.rb +++ b/app/mailers/notify.rb @@ -27,8 +27,7 @@ class Notify < ActionMailer::Base @user = user @note = note @project = note.project - @commit = @project.repo.commits(note.noteable_id).first - return unless ( note.notify or ( note.notify_author and @commit.author.email == @user.email ) ) + @commit = @note.target mail(:to => @user.email, :subject => "gitlab | note for commit | #{@note.project.name} ") end |