Commit 2882c934 authored by Rémy Coutable's avatar Rémy Coutable

Move EE-specific code to a better position

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent bd57d7b7
......@@ -44,14 +44,6 @@ 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
......@@ -88,6 +80,12 @@ constraints(GroupUrlConstrainer.new) do
end
end
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
get 'boards(/*extra_params)', as: :legacy_ee_group_boards_redirect, to: legacy_ee_group_boards_redirect
## EE-specific
end
......
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