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-05-23 07:37:01 +0300
committerRobert Speicher <rspeicher@gmail.com>2015-05-29 01:22:33 +0300
commitbd12ca5eb3c8b6ca9de28cbbb074ff1e29c661f2 (patch)
tree3a2e54efc1a5ad92d4dac497a4a50496fdaf8491 /config
parent330c25385bb8f54149c6ea7547af9fae6d6c5dd6 (diff)
Disable Rack::MiniProfiler for /teaspoon path
Diffstat (limited to 'config')
-rw-r--r--config/initializers/6_rack_profiler.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/initializers/6_rack_profiler.rb b/config/initializers/6_rack_profiler.rb
index 59934e210fe..5312fd8e89a 100644
--- a/config/initializers/6_rack_profiler.rb
+++ b/config/initializers/6_rack_profiler.rb
@@ -3,7 +3,8 @@ if Rails.env.development?
# initialization is skipped so trigger it
Rack::MiniProfilerRails.initialize!(Rails.application)
+
Rack::MiniProfiler.config.position = 'right'
Rack::MiniProfiler.config.start_hidden = true
- Rack::MiniProfiler.config.skip_paths << %w(/specs /teaspoon)
+ Rack::MiniProfiler.config.skip_paths << '/teaspoon'
end