Update usages of tree_file_project_ref_path to project_tree_path

This commit is contained in:
Robert Speicher 2012-09-17 12:39:57 -04:00
parent e33cbb9b42
commit 79a02df92e
20 changed files with 41 additions and 36 deletions

View file

@ -18,7 +18,7 @@ class RefsController < ApplicationController
respond_to do |format|
format.html do
new_path = if params[:destination] == "tree"
tree_project_ref_path(@project, params[:ref])
project_tree_path(@project, params[:ref])
else
project_commits_path(@project, ref: params[:ref])
end
@ -96,10 +96,10 @@ class RefsController < ApplicationController
@hex_path = Digest::SHA1.hexdigest(params[:path] || "/")
if params[:path]
@history_path = tree_file_project_ref_path(@project, @ref, params[:path])
@history_path = project_tree_path(@project, File.join(@ref, params[:path]))
@logs_path = logs_file_project_ref_path(@project, @ref, params[:path])
else
@history_path = tree_project_ref_path(@project, @ref)
@history_path = project_tree_path(@project, @ref)
@logs_path = logs_tree_project_ref_path(@project, @ref)
end
rescue