Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-08-16 01:11:23 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-08-17 18:58:59 +0300
commit57737785df21c160234487b25ee8b37289a91803 (patch)
treec9d8651de5a0c06fe2107c7df65b61d1a9dade5f /config/routes.rb
parent8e4e294a7cc8725869964cf56842124aec54ca12 (diff)
Move board related controllers to the `Boards` namespace
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb14
1 files changed, 8 insertions, 6 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 3b17ed612bf..b74d6fa4464 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -857,14 +857,16 @@ Rails.application.routes.draw do
end
resource :board, only: [:show] do
- resources :issues, only: [:update], controller: :board_issues
+ scope module: :boards do
+ resources :issues, only: [:update]
- resources :lists, only: [:create, :update, :destroy], controller: :board_lists do
- collection do
- post :generate
- end
+ resources :lists, only: [:create, :update, :destroy] do
+ collection do
+ post :generate
+ end
- resources :issues, only: [:index], controller: :board_issues
+ resources :issues, only: [:index]
+ end
end
end