hometown/config/initializers/rack-mini-profiler.rb

7 lines
220 B
Ruby
Raw Normal View History

require 'rack-mini-profiler'
Rack::MiniProfilerRails.initialize!(Rails.application)
Rails.application.middleware.delete(Rack::MiniProfiler)
Rails.application.middleware.insert_after(Rack::Deflater, Rack::MiniProfiler)