summaryrefslogtreecommitdiff
path: root/config/initializers/rack_profiler.rb
blob: 7710eeac45395d17705422af8cc519e289efb64b (plain)
1
2
3
4
5
6
7
8
9
10
if Rails.env.development?
  require 'rack-mini-profiler'

  # initialization is skipped so trigger it
  Rack::MiniProfilerRails.initialize!(Gitlab::Application)

  Rack::MiniProfiler.config.position = 'right'
  Rack::MiniProfiler.config.start_hidden = false
  Rack::MiniProfiler.config.skip_paths << '/teaspoon'
end