From bd12ca5eb3c8b6ca9de28cbbb074ff1e29c661f2 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Sat, 23 May 2015 00:37:01 -0400 Subject: Disable Rack::MiniProfiler for /teaspoon path --- config/initializers/6_rack_profiler.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1