Module: Rack

Defined in:
lib/mini_profiler/profiler.rb,
lib/mini_profiler/config.rb,
lib/mini_profiler/version.rb,
lib/mini_profiler/timer_struct.rb,
lib/mini_profiler/client_settings.rb,
lib/mini_profiler/sql_timer_struct.rb,
lib/mini_profiler/page_timer_struct.rb,
lib/mini_profiler/profiling_methods.rb,
lib/mini_profiler/storage/file_store.rb,
lib/mini_profiler/client_timer_struct.rb,
lib/mini_profiler/custom_timer_struct.rb,
lib/mini_profiler/storage/redis_store.rb,
lib/mini_profiler/request_timer_struct.rb,
lib/mini_profiler/storage/memory_store.rb,
lib/mini_profiler/storage/abstract_store.rb,
lib/mini_profiler/storage/memcache_store.rb,
lib/patches/sql_patches.rb

Overview

require ‘mini_profiler/gc_profiler_ruby_head’ if Gem::Version.new(‘2.1.0’) <= Gem::Version.new(RUBY_VERSION)

Defined Under Namespace

Modules: MiniProfilerRails Classes: MiniProfiler

Class Method Summary collapse

Class Method Details

.insert_instrumentationObject



274
275
276
277
278
# File 'lib/patches/sql_patches.rb', line 274

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