Commit 55d2953a authored by Jan Provaznik's avatar Jan Provaznik

Fix route deprecation warnings in rails 5

parent 67f3bf3a
Pipeline #30040171 passed with stages
in 68 minutes and 9 seconds
......@@ -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, {}, ['']] }
......@@ -145,7 +145,7 @@ constraints( do
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
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