mastodon/config/initializers/rack-mini-profiler.rb
Eugen Rochko 6426819b6f Fix tests
2016-08-18 17:22:44 +02:00

4 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