diff options
author | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-10-08 14:17:46 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-10-08 14:17:46 +0300 |
commit | bcdb168709ac03c7a7e00f440dcd47f2538894e3 (patch) | |
tree | 1d7efff3b3584b4bebda17faa3b196c572a5eb01 /app/decorators | |
parent | 624abdfc72f57da5650e239c8dd20e14f2f9a186 (diff) | |
download | gitlab-ce-bcdb168709ac03c7a7e00f440dcd47f2538894e3.tar.gz |
Fix dashboard atom feed routes
Diffstat (limited to 'app/decorators')
-rw-r--r-- | app/decorators/event_decorator.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/decorators/event_decorator.rb b/app/decorators/event_decorator.rb index b2f9c439589..1b0ad0da28f 100644 --- a/app/decorators/event_decorator.rb +++ b/app/decorators/event_decorator.rb @@ -24,15 +24,14 @@ class EventDecorator < ApplicationDecorator elsif self.push? if self.push_with_commits? if self.commits_count > 1 - h.compare_project_commits_path(self.project, :from => self.parent_commit.id, :to => self.last_commit.id) + h.project_compare_url(self.project, :from => self.parent_commit.id, :to => self.last_commit.id) else - h.project_commit_path(self.project, :id => self.last_commit.id) + h.project_commit_url(self.project, :id => self.last_commit.id) end else - h.project_commits_url(self.project, ref: self.ref_name) + h.project_commits_url(self.project, self.ref_name) end end - end def feed_summary |