class Metrician::ActiveRecord
Public Class Methods
enabled?()
click to toggle source
# File lib/metrician/reporters/active_record.rb, line 5 def self.enabled? !!defined?(::ActiveRecord) && Metrician.configuration[:database][:enabled] end
Public Instance Methods
instrument()
click to toggle source
# File lib/metrician/reporters/active_record.rb, line 10 def instrument ::ActiveRecord::ConnectionAdapters::AbstractAdapter.module_eval do include QueryInterceptor end end