Update usages of project_commit[s] route helpers

This commit is contained in:
Robert Speicher 2012-09-25 18:50:02 -04:00
parent 99d391332f
commit 1048917232
8 changed files with 9 additions and 9 deletions

View file

@ -21,7 +21,7 @@ class EventDecorator < ApplicationDecorator
elsif self.merge_request?
h.project_merge_request_url(self.project, self.merge_request)
elsif self.push?
h.project_commits_url(self.project, ref: self.ref_name)
h.project_commits_url(self.project, self.ref_name)
end
end
end

View file

@ -30,7 +30,7 @@ class TreeDecorator < ApplicationDecorator
end
def history_path
h.project_commits_path(project, path: path, ref: ref)
h.project_commits_path(project, h.tree_join(ref, path))
end
def mb_size