Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-04-11 23:49:03 +0300
committerRobert Speicher <rspeicher@gmail.com>2015-04-15 19:25:37 +0300
commite24cb79f3196052395829b35d51693dc9de5afbe (patch)
tree4b3d9762e0d9ed90476f3ece2a3ad81661e95268 /config
parent1e27b68b364cfc0b504e7db429c2450d75b72cfd (diff)
Add constraints to help#show route parameters
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index af58e095d9a..8dbe6d80ab7 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -39,7 +39,7 @@ Gitlab::Application.routes.draw do
# Help
get 'help' => 'help#index'
- get 'help/:category/:file' => 'help#show', as: :help_page
+ get 'help/:category/:file' => 'help#show', as: :help_page, constraints: { category: /[^\.]+/, file: /[^\.]+/ }
get 'help/shortcuts'
get 'help/ui' => 'help#ui'