Commit 95f0a4114139d49b3979d6f0e53baa53193a624a
1 parent
33126227
Exists in
master
and in
4 other branches
Fix Refs#switch
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
app/controllers/refs_controller.rb
@@ -13,9 +13,9 @@ class RefsController < ApplicationController | @@ -13,9 +13,9 @@ class RefsController < ApplicationController | ||
13 | 13 | ||
14 | layout "project" | 14 | layout "project" |
15 | 15 | ||
16 | - def switch | ||
17 | - respond_to do |format| | ||
18 | - format.html do | 16 | + def switch |
17 | + respond_to do |format| | ||
18 | + format.html do | ||
19 | new_path = if params[:destination] == "tree" | 19 | new_path = if params[:destination] == "tree" |
20 | project_tree_path(@project, @ref) | 20 | project_tree_path(@project, @ref) |
21 | else | 21 | else |
@@ -69,6 +69,6 @@ class RefsController < ApplicationController | @@ -69,6 +69,6 @@ class RefsController < ApplicationController | ||
69 | end | 69 | end |
70 | 70 | ||
71 | def ref | 71 | def ref |
72 | - @ref = params[:id] | 72 | + @ref = params[:ref] |
73 | end | 73 | end |
74 | end | 74 | end |