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
4 5 6 7 8 |
# File 'lib/patches/db/sequel.rb', line 4 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
3 |
# File 'lib/patches/db/sequel.rb', line 3 alias_method :log_duration_original, :log_duration |