module Rack
based off github.com/newrelic/rpm/blob/master/lib/new_relic/agent/instrumentation/active_record.rb fallback for alls sorts of weird dbs
Constants
- MINI_PROFILER_ENABLE_RAILS_PATCHES
- MINI_PROFILER_PREPEND_MYSQL2_PATCH
- MINI_PROFILER_PREPEND_NET_HTTP_PATCH
Public Class Methods
insert_instrumentation()
click to toggle source
# File lib/patches/db/activerecord.rb, line 35 def self.insert_instrumentation ActiveRecord::ConnectionAdapters::AbstractAdapter.module_eval do include ::Rack::MiniProfiler::ActiveRecordInstrumentation end end