Commit 6f138d0b authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'rails5-route-warnings-ee' into 'master'

[EE] Fix route deprecation warnings in rails 5

See merge request gitlab-org/gitlab-ee!7339
parents b40ffca0 0c066952
...@@ -34,7 +34,7 @@ Rails.application.routes.draw do ...@@ -34,7 +34,7 @@ Rails.application.routes.draw do
get :callback get :callback
post :access_token post :access_token
# This helps minimize merge conflicts with CE for this scope block # This helps minimize merge conflicts with CE for this scope block
match ':action', via: [:get, :post], to: proc { [404, {}, ['']] } match '*all', via: [:get, :post], to: proc { [404, {}, ['']] }
end end
namespace :oauth do namespace :oauth do
......
...@@ -166,7 +166,7 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do ...@@ -166,7 +166,7 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
end end
end end
controller 'merge_requests/creations', path: 'merge_requests' do scope path: 'merge_requests', controller: 'merge_requests/creations' do
post '', action: :create, as: nil post '', action: :create, as: nil
scope path: 'new', as: :new_merge_request do scope path: 'new', as: :new_merge_request do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment