Class: Sequel::Database
- Inherits:
-
Object
- Object
- Sequel::Database
- 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, ) # `duration` will be in seconds, but we need it in milliseconds for internal consistency. ::Rack::MiniProfiler.record_sql(, duration * 1000) log_duration_original(duration, ) end |
#log_duration_original ⇒ Object
5 |
# File 'lib/patches/db/sequel.rb', line 5 alias_method :log_duration_original, :log_duration |