masto-fe/config/initializers/rack-mini-profiler.rb

5 lines
175 B
Ruby
Raw Normal View History

2016-08-18 15:13:41 +00:00
unless Rails.env == 'test'
Rails.application.middleware.swap(Rack::Deflater, Rack::MiniProfiler)
Rails.application.middleware.swap(Rack::MiniProfiler, Rack::Deflater)
end