Module: Rack

Defined in:
lib/patches/db/activerecord.rb,
lib/mini_profiler/config.rb,
lib/mini_profiler/version.rb,
lib/mini_profiler/profiler.rb,
lib/mini_profiler/asset_version.rb,
lib/mini_profiler/client_settings.rb,
lib/mini_profiler/timer_struct/sql.rb,
lib/mini_profiler/profiling_methods.rb,
lib/mini_profiler/timer_struct/base.rb,
lib/mini_profiler/timer_struct/page.rb,
lib/mini_profiler/storage/file_store.rb,
lib/mini_profiler/storage/redis_store.rb,
lib/mini_profiler/timer_struct/client.rb,
lib/mini_profiler/timer_struct/custom.rb,
lib/mini_profiler/storage/memory_store.rb,
lib/mini_profiler/timer_struct/request.rb,
lib/mini_profiler/storage/abstract_store.rb,
lib/mini_profiler/storage/memcache_store.rb

Overview

Defined Under Namespace

Modules: MiniProfilerRails Classes: MiniProfiler

Class Method Summary collapse

Class Method Details

.insert_instrumentationObject



44
45
46
47
48
# File 'lib/patches/db/activerecord.rb', line 44

def self.insert_instrumentation
  ActiveRecord::ConnectionAdapters::AbstractAdapter.module_eval do
    include ::Rack::MiniProfiler::ActiveRecordInstrumentation
  end
end