DEV: update mini profiler

DEV: update mini profiler

This provides us with instrumentation missing after rails upgrade

Latest version of rails uses exec_params internally which is no longer
routed to intercepted methods in mini profiler 1.0.0

From a34bc92e1a9c83a49a2fa8496951e0b59bcd2a31 Mon Sep 17 00:00:00 2001
From: Sam <sam.saffron@gmail.com>
Date: Mon, 10 Dec 2018 14:29:20 +1100
Subject: [PATCH] DEV: update mini profiler

This provides us with instrumentation missing after rails upgrade

Latest version of rails uses exec_params internally which is no longer
routed to intercepted methods in mini profiler 1.0.0

diff --git a/Gemfile.lock b/Gemfile.lock
index 391b8df..60d63a5 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -287,7 +287,7 @@ GEM
     puma (3.11.4)
     r2 (0.2.7)
     rack (2.0.6)
-    rack-mini-profiler (1.0.0)
+    rack-mini-profiler (1.0.1)
       rack (>= 1.2.0)
     rack-openid (1.3.1)
       rack (>= 1.1.0)
diff --git a/config/initializers/006-mini_profiler.rb b/config/initializers/006-mini_profiler.rb
index 4af6edb..7620cb3 100644
--- a/config/initializers/006-mini_profiler.rb
+++ b/config/initializers/006-mini_profiler.rb
@@ -13,8 +13,7 @@ if Rails.configuration.respond_to?(:load_mini_profiler) && Rails.configuration.l
   Rack::MiniProfilerRails.initialize!(Rails.application)
 end
 
-if defined?(Rack::MiniProfiler)
-
+if defined?(Rack::MiniProfiler) && defined?(Rack::MiniProfiler::Config)
   # note, we may want to add some extra security here that disables mini profiler in a multi hosted env unless user global admin
   #   raw_connection means results are not namespaced
   #

GitHub