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

Fix Refs#switch

parent 33126227
...@@ -13,9 +13,9 @@ class RefsController < ApplicationController ...@@ -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 ...@@ -69,6 +69,6 @@ class RefsController < ApplicationController
end end
def ref def ref
@ref = params[:id] @ref = params[:ref]
end end
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