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
This commit is contained in:
Sam 2018-12-10 14:29:20 +11:00
parent 955cdad649
commit a34bc92e1a
2 changed files with 2 additions and 3 deletions

@ -287,7 +287,7 @@ GEM
puma (3.11.4) puma (3.11.4)
r2 (0.2.7) r2 (0.2.7)
rack (2.0.6) rack (2.0.6)
rack-mini-profiler (1.0.0) rack-mini-profiler (1.0.1)
rack (>= 1.2.0) rack (>= 1.2.0)
rack-openid (1.3.1) rack-openid (1.3.1)
rack (>= 1.1.0) rack (>= 1.1.0)

@ -13,8 +13,7 @@ if Rails.configuration.respond_to?(:load_mini_profiler) && Rails.configuration.l
Rack::MiniProfilerRails.initialize!(Rails.application) Rack::MiniProfilerRails.initialize!(Rails.application)
end 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 # 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 # raw_connection means results are not namespaced
# #