Disable Rack::MiniProfiler for /teaspoon path
This commit is contained in:
parent
330c25385b
commit
bd12ca5eb3
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue