Skip to content
Snippets Groups Projects
Commit 55d2953a authored by Jan Provaznik's avatar Jan Provaznik
Browse files

Fix route deprecation warnings in rails 5

parent 67f3bf3a
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment