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



6
7
8
9
10
# File 'lib/patches/db/sequel.rb', line 6

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



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

alias_method :log_duration_original, :log_duration