Disable Rack::MiniProfiler for /teaspoon path

This commit is contained in:
Robert Speicher 2015-05-23 00:37:01 -04:00
parent 330c25385b
commit bd12ca5eb3

View file

@ -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