diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-13 21:08:20 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-13 21:08:20 +0000 |
commit | 4f4b85e1c7f7a5518f12a6981709cf3ef3f0f653 (patch) | |
tree | 8adfdbfb57def6abe06a2cb3a0f058a861612c67 /config/routes.rb | |
parent | 04befb368f4b170ce19bb2c7c8739baa08b04a0a (diff) | |
download | gitlab-ce-4f4b85e1c7f7a5518f12a6981709cf3ef3f0f653.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/config/routes.rb b/config/routes.rb index af1ecc687e0..27ea8679de0 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -299,7 +299,7 @@ InitializerConnections.with_disabled_database_connections do # TODO: We don't need the `Gitlab::Routing` module at all as we can use # the `direct` DSL method of Rails to define url helpers. Move all the # custom url helpers to use the `direct` DSL method and remove the `Gitlab::Routing`. - # For more information: https://gitlab.com/gitlab-org/gitlab/-/issues/299583 + # For more information: https://gitlab.com/groups/gitlab-org/-/epics/9866 Gitlab::Application.routes.set.filter_map { |route| route.name if route.name&.include?('namespace_project') }.each do |name| new_name = name.sub('namespace_project', 'project') @@ -315,7 +315,9 @@ InitializerConnections.with_disabled_database_connections do root to: "root#index" get '*unmatched_route', to: 'application#route_not_found', format: false - end - Gitlab::Routing.add_helpers(TimeboxesRoutingHelper) + # Load all custom URLs definitions via `direct' after the last route + # definition. + draw :directs + end end |