This repository has been archived on 2019-05-14. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon/config/initializers/rack-mini-profiler.rb
Eugen Rochko 6426819b6f Fix tests
2016-08-18 17:22:44 +02:00

5 lines
175 B
Ruby

unless Rails.env == 'test'
Rails.application.middleware.swap(Rack::Deflater, Rack::MiniProfiler)
Rails.application.middleware.swap(Rack::MiniProfiler, Rack::Deflater)
end