gitlab-org--gitlab-foss/config/initializers/6_rack_profiler.rb
Dmitriy Zaporozhets 63be16008e
Hide rack profiler by default
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-12-24 15:43:45 +02:00

8 lines
262 B
Ruby

if Rails.env == 'development'
require 'rack-mini-profiler'
# initialization is skipped so trigger it
Rack::MiniProfilerRails.initialize!(Rails.application)
Rack::MiniProfiler.config.position = 'right'
Rack::MiniProfiler.config.start_hidden = true
end