Commit 95f0a411 authored by Robert Speicher's avatar Robert Speicher

Fix Refs#switch

parent 33126227
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment