summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Feldman <yuri@tbqh.net>2013-02-12 19:26:42 +1100
committerYuri Feldman <yuri@tbqh.net>2013-02-12 19:28:48 +1100
commit2d0c3e4c6dff291aa85e8bda18b8ac85e92c1994 (patch)
tree8adec0245316555b7505513af6c372a69590560d
parent918e2213e71cb1a6c0cc7fd4249c51db90a2614c (diff)
downloadgitlab-ce-2d0c3e4c6dff291aa85e8bda18b8ac85e92c1994.tar.gz
Fix for incorrect routing to the Compare controller
-rw-r--r--config/routes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 47c8a4122f5..88667db130e 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -166,12 +166,12 @@ Gitlab::Application.routes.draw do
get "files"
end
+ resources :blob, only: [:show], constraints: {id: /.+/}
resources :tree, only: [:show, :edit, :update], constraints: {id: /.+/}
resources :commit, only: [:show], constraints: {id: /[[:alnum:]]{6,40}/}
resources :commits, only: [:show], constraints: {id: /.+/}
resources :compare, only: [:index, :create]
resources :blame, only: [:show], constraints: {id: /.+/}
- resources :blob, only: [:show], constraints: {id: /.+/}
resources :graph, only: [:show], constraints: {id: /.+/}
match "/compare/:from...:to" => "compare#show", as: "compare",
:via => [:get, :post], constraints: {from: /.+/, to: /.+/}