Fix Refs#switch
This commit is contained in:
parent
33126227af
commit
95f0a41141
|
@ -13,9 +13,9 @@ class RefsController < ApplicationController
|
||||||
|
|
||||||
layout "project"
|
layout "project"
|
||||||
|
|
||||||
def switch
|
def switch
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html do
|
format.html do
|
||||||
new_path = if params[:destination] == "tree"
|
new_path = if params[:destination] == "tree"
|
||||||
project_tree_path(@project, @ref)
|
project_tree_path(@project, @ref)
|
||||||
else
|
else
|
||||||
|
@ -69,6 +69,6 @@ class RefsController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def ref
|
def ref
|
||||||
@ref = params[:id]
|
@ref = params[:ref]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue