Update usages of project_commit[s] route helpers
This commit is contained in:
parent
99d391332f
commit
1048917232
8 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue