Module: Rack

Defined in:
lib/mini_profiler/config.rb,
lib/mini_profiler/profiler.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/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/patches/sql_patches.rb

Defined Under Namespace

Classes: MiniProfiler

Class Method Summary collapse

Class Method Details

.insert_instrumentationObject



221
222
223
224
225
# File 'lib/patches/sql_patches.rb', line 221

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