diff options
author | Robert Speicher <rspeicher@gmail.com> | 2012-09-25 19:17:54 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2012-09-26 16:32:23 -0400 |
commit | 95f0a4114139d49b3979d6f0e53baa53193a624a (patch) | |
tree | e8262f844539ab5f9748e79a3f04f6087b5a8d60 | |
parent | 33126227af662a454538d5a64762d19165f3c65d (diff) | |
download | gitlab-ce-95f0a4114139d49b3979d6f0e53baa53193a624a.tar.gz |
Fix Refs#switch
-rw-r--r-- | app/controllers/refs_controller.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/refs_controller.rb b/app/controllers/refs_controller.rb index b260be0ae74..ff143f3f6e6 100644 --- a/app/controllers/refs_controller.rb +++ b/app/controllers/refs_controller.rb @@ -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 |