From bcdb168709ac03c7a7e00f440dcd47f2538894e3 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> Date: Mon, 8 Oct 2012 14:17:46 +0300 Subject: [PATCH] Fix dashboard atom feed routes --- app/decorators/event_decorator.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/decorators/event_decorator.rb b/app/decorators/event_decorator.rb index b2f9c4395..1b0ad0da2 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 -- 2.30.9