Class: Sequel::Database

Inherits:
Object
  • Object
show all
Defined in:
lib/patches/db/sequel.rb

Instance Method Summary collapse

Instance Method Details

#log_duration(duration, message) ⇒ Object



4
5
6
7
8
# File 'lib/patches/db/sequel.rb', line 4

def log_duration(duration, message)
  # `duration` will be in seconds, but we need it in milliseconds for internal consistency.
  ::Rack::MiniProfiler.record_sql(message, duration * 1000)
  log_duration_original(duration, message)
end

#log_duration_originalObject



3
# File 'lib/patches/db/sequel.rb', line 3

alias_method :log_duration_original, :log_duration