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