From a43cd34cf5766c012974e03c642a25cb6ce69ca5 Mon Sep 17 00:00:00 2001 From: Andy Waite Date: Sat, 4 Mar 2023 16:39:08 -0500 Subject: [PATCH] Support `current` alias Closes https://github.com/rubyapi/rubyapi/issues/1215 --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index afc5260bc..57b5d5db4 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -8,7 +8,7 @@ ruby_versions = RubyConfig.ruby_versions.collect { |v| Regexp.escape(v.version) } - scope "(:version)", constraints: { version: /#{ruby_versions.join("|")}/ } do + scope "(:version)", constraints: { version: /#{ruby_versions.join("|")}|current/ } do root to: "home#index", as: :versioned_root post '/set_theme', to: 'home#set_theme' # We need the search path to be prefixed with `o/` so that the RDOc links will