Commit bd57d7b7 authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Adjust legacy_ee_group_boards_redirect syntatic failure and assignment ordering

parent 28a8f227
......@@ -44,6 +44,14 @@ constraints(GroupUrlConstrainer.new) do
end
end
## EE-specific
legacy_ee_group_boards_redirect = redirect do |params, request|
path = "/groups/#{params[:group_id]}/-/boards"
path << "/#{params[:extra_params]}" if params[:extra_params].present?
path << "?#{request.query_string}" if request.query_string.present?
path
end
resource :avatar, only: [:destroy]
resources :group_members, only: [:index, :create, :update, :destroy], concerns: :access_requestable do
......@@ -84,16 +92,6 @@ constraints(GroupUrlConstrainer.new) do
## EE-specific
end
## EE-specific
legacy_ee_group_boards_redirect = redirect do |params, request|
path = "/groups/#{params[:group_id]}/-/boards"
path << "/#{params[:extra_params]}" if params[:extra_params].present?
path << "?#{request.query_string}" if request.query_string.present?
path
end
end
## EE-specific
scope(path: '*id',
as: :group,
constraints: { id: Gitlab::PathRegex.full_namespace_route_regex, format: /(html|json|atom)/ },
......
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