module ROM::LDAP::ActiveSupportInstrumentation

Public Instance Methods

call(filter) click to toggle source
Calls superclass method
# File lib/rom/ldap/extensions/active_support_notifications.rb, line 8
def call(filter)
  ActiveSupport::Notifications.instrument(
    'ldap.rom',
    ldap: 'foobar',
    name: instrumentation_name,
    binds: filter
  ) { super }
end

Private Instance Methods

instrumentation_name() click to toggle source
# File lib/rom/ldap/extensions/active_support_notifications.rb, line 19
def instrumentation_name
  "ROM[#{directory.type}]"
end