Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-04-21 16:09:15 +0300
committerDouwe Maan <douwe@gitlab.com>2015-04-24 13:29:36 +0300
commit84a1590252c63c710bceaa7a394799cdc5109505 (patch)
tree12d9b499acad48dc9420d095803705093d2b135d /app/mailers
parentb0ed2ff1a69df384a1cb9a184c0528bec1986827 (diff)
Let commit model know about its project.
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/emails/projects.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/mailers/emails/projects.rb b/app/mailers/emails/projects.rb
index 0dbb2939bb3..9cb7077e59d 100644
--- a/app/mailers/emails/projects.rb
+++ b/app/mailers/emails/projects.rb
@@ -79,7 +79,7 @@ module Emails
@disable_diffs = disable_diffs
if @compare
- @commits = Commit.decorate(compare.commits)
+ @commits = Commit.decorate(compare.commits, @project)
@diffs = compare.diffs
end
@@ -101,8 +101,8 @@ module Emails
if @commits.length > 1
@target_url = namespace_project_compare_url(@project.namespace,
@project,
- from: Commit.new(@compare.base),
- to: Commit.new(@compare.head))
+ from: Commit.new(@compare.base, @project),
+ to: Commit.new(@compare.head, @project))
@subject << "Deleted " if @reverse_compare
@subject << "#{@commits.length} commits: #{@commits.first.title}"
else