Fix: lib/mini_profiler_rails/railtie.rb:98:in `>': comparison of Integer with nil failed (ArgumentError) (#400)

Fix: lib/mini_profiler_rails/railtie.rb:98:in `>’: comparison of Integer with nil failed (ArgumentError) (#400)

diff --git a/lib/mini_profiler_rails/railtie.rb b/lib/mini_profiler_rails/railtie.rb
index fb1e22d..e9f7b3c 100644
--- a/lib/mini_profiler_rails/railtie.rb
+++ b/lib/mini_profiler_rails/railtie.rb
@@ -95,6 +95,7 @@ module Rack::MiniProfilerRails
       middlewares = app.middleware.middlewares
       if Rack::MiniProfiler.config.suppress_encoding.nil? &&
           middlewares.include?(Rack::Deflater) &&
+          middlewares.include?(Rack::MiniProfiler) &&
           middlewares.index(Rack::Deflater) > middlewares.index(Rack::MiniProfiler)
         Rack::MiniProfiler.config.suppress_encoding = true
       end

GitHub sha: 7e291b72