From 3e17187ff0f21b2ce030ba3cac5e13e05f0c254e Mon Sep 17 00:00:00 2001 From: Ahmad Sherif <me@ahmadsherif.com> Date: Wed, 27 Jul 2016 15:45:18 +0200 Subject: [PATCH] Change requests_profiles resource constraint to catch virtually any file --- CHANGELOG | 1 + config/routes.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index ab1e96919a68e..4fb9541a46a04 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -19,6 +19,7 @@ v 8.11.0 (unreleased) - Add the `sprockets-es6` gem - Multiple trigger variables show in separate lines (Katarzyna Kobierska Ula Budziszewska) - Profile requests when a header is passed + - Change requests_profiles resource constraint to catch virtually any file v 8.10.3 (unreleased) diff --git a/config/routes.rb b/config/routes.rb index 414ba69dfaeea..308d83af57e0f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -279,7 +279,7 @@ resource :health_check, controller: 'health_check', only: [:show] resource :background_jobs, controller: 'background_jobs', only: [:show] resource :system_info, controller: 'system_info', only: [:show] - resources :requests_profiles, only: [:index, :show], param: :name + resources :requests_profiles, only: [:index, :show], param: :name, constraints: { name: /.+\.html/ } resources :namespaces, path: '/projects', constraints: { id: /[a-zA-Z.0-9_\-]+/ }, only: [] do root to: 'projects#index', as: :projects -- GitLab