Commit bcdb168709ac03c7a7e00f440dcd47f2538894e3

Authored by Dmitriy Zaporozhets
1 parent 624abdfc

Fix dashboard atom feed routes

Showing 1 changed file with 3 additions and 4 deletions   Show diff stats
app/decorators/event_decorator.rb
... ... @@ -24,15 +24,14 @@ class EventDecorator < ApplicationDecorator
24 24 elsif self.push?
25 25 if self.push_with_commits?
26 26 if self.commits_count > 1
27   - h.compare_project_commits_path(self.project, :from => self.parent_commit.id, :to => self.last_commit.id)
  27 + h.project_compare_url(self.project, :from => self.parent_commit.id, :to => self.last_commit.id)
28 28 else
29   - h.project_commit_path(self.project, :id => self.last_commit.id)
  29 + h.project_commit_url(self.project, :id => self.last_commit.id)
30 30 end
31 31 else
32   - h.project_commits_url(self.project, ref: self.ref_name)
  32 + h.project_commits_url(self.project, self.ref_name)
33 33 end
34 34 end
35   -
36 35 end
37 36  
38 37 def feed_summary
... ...