diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2018-09-13 13:52:54 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2018-09-13 13:52:54 +0300 |
commit | 126889848d0c16a37c0adc8c18cf6b88bd9d1cb1 (patch) | |
tree | 331b403a5608711f23d3c2c0f921916a6b8267fe | |
parent | 71f3d48544cc0857c8d470b182f7e809de6a4642 (diff) | |
parent | 55d2953ab1b9e6b64283e89d452f721860e04a4e (diff) |
Merge branch 'rails5-route-warnings' into 'master'
Fix route deprecation warnings in rails 5
See merge request gitlab-org/gitlab-ce!21684
-rw-r--r-- | config/routes.rb | 2 | ||||
-rw-r--r-- | config/routes/project.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb index e2e97b46d23..1242bbbf932 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -31,7 +31,7 @@ Rails.application.routes.draw do # Having a non-existent controller here does not affect the scope in any way since all possible routes # get a 404 proc returned. It is written in this way to minimize merge conflicts with EE scope path: '/login/oauth', controller: 'oauth/jira/authorizations', as: :oauth_jira do - match ':action', via: [:get, :post], to: proc { [404, {}, ['']] } + match '*all', via: [:get, :post], to: proc { [404, {}, ['']] } end use_doorkeeper_openid_connect diff --git a/config/routes/project.rb b/config/routes/project.rb index 4021d62b931..8a5310b5c23 100644 --- a/config/routes/project.rb +++ b/config/routes/project.rb @@ -145,7 +145,7 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do end end - controller 'merge_requests/creations', path: 'merge_requests' do + scope path: 'merge_requests', controller: 'merge_requests/creations' do post '', action: :create, as: nil scope path: 'new', as: :new_merge_request do |