summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-05-23 00:37:01 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-05-28 18:22:33 -0400
commitbd12ca5eb3c8b6ca9de28cbbb074ff1e29c661f2 (patch)
tree3a2e54efc1a5ad92d4dac497a4a50496fdaf8491 /config
parent330c25385bb8f54149c6ea7547af9fae6d6c5dd6 (diff)
downloadgitlab-ce-bd12ca5eb3c8b6ca9de28cbbb074ff1e29c661f2.tar.gz
Disable Rack::MiniProfiler for /teaspoon pathrs-teaspoon
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