From c2d16fd8b48f08ad6d7386deef7934f6ea13ea5e Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Mon, 7 Oct 2013 16:25:32 +0300 Subject: [PATCH] Add constraints to group_links route --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 4da076a499..37dc26d36c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -293,7 +293,7 @@ Gitlab::Application.routes.draw do end end - resources :group_links, only: [:index, :create, :destroy] + resources :group_links, only: [:index, :create, :destroy], constraints: {id: /\d+/} resources :notes, only: [:index, :create, :destroy, :update], constraints: {id: /\d+/} do member do