diff options
author | Jonathan A. Sternberg <jonathansternberg@gmail.com> | 2014-04-10 20:41:20 +0400 |
---|---|---|
committer | Jonathan A. Sternberg <jonathansternberg@gmail.com> | 2014-04-11 19:54:02 +0400 |
commit | 9cb2a4ac8abfe27ecbf1133aec7b29604f20c248 (patch) | |
tree | 6d06a22b796bc9b09aeefab4458c45e4bed01579 /app/mailers/emails | |
parent | 415c0f4bbe12dbd78bf24d50e66e3092df07fa21 (diff) |
Fix emails on push service when a single commit is pushed
This fixes issue #161.
Diffstat (limited to 'app/mailers/emails')
-rw-r--r-- | app/mailers/emails/projects.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/mailers/emails/projects.rb b/app/mailers/emails/projects.rb index 46aa34d13da..9f99c11ea30 100644 --- a/app/mailers/emails/projects.rb +++ b/app/mailers/emails/projects.rb @@ -26,7 +26,7 @@ module Emails if @commits.length > 1 @target_url = project_compare_url(@project, from: @commits.first, to: @commits.last) else - @target_url = project_commit_url(@project, @compare.commit) + @target_url = project_commit_url(@project, @commits.first) end mail(from: sender(author_id), |