class Object

Public Instance Methods

_orig_log_connection_yield(*args, &block)
_orig_log_yield(*args, &block)
Alias for: log_yield
log_connection_yield(*args, &block) click to toggle source
# File lib/time_bandits/monkey_patches/sequel.rb, line 13
def log_connection_yield(*args, &block)
  begin
    start = Time.now
    _orig_log_connection_yield(*args, &block)
  ensure
    ActiveSupport::Notifications.instrument('duration.sequel', durationInSeconds: Time.now - start)
  end
end
Also aliased as: _orig_log_connection_yield
log_yield(*args, &block) click to toggle source
# File lib/time_bandits/monkey_patches/sequel.rb, line 26
def log_yield(*args, &block)
  begin
    start = Time.now
    _orig_log_yield(*args, &block)
  ensure
    ActiveSupport::Notifications.instrument('duration.sequel', durationInSeconds: Time.now - start)
  end
end
Also aliased as: _orig_log_yield