lib/rom/sql/extensions/active_support_notifications.rb in rom-sql-3.6.4 vs lib/rom/sql/extensions/active_support_notifications.rb in rom-sql-4.0.0.alpha1
- old
+ new
@@ -1,16 +1,16 @@
# frozen_string_literal: true
-require 'sequel/database/logging'
-require 'active_support/notifications'
+require "sequel/database/logging"
+require "active_support/notifications"
module ROM
module SQL
module ActiveSupportInstrumentation
def log_connection_yield(sql, _conn, args = nil)
ActiveSupport::Notifications.instrument(
- 'sql.rom',
+ "sql.rom",
sql: sql,
name: instrumentation_name,
binds: args
) { super }
end
@@ -22,6 +22,6 @@
end
end
end
end
-Sequel::Database.send(:prepend, ROM::SQL::ActiveSupportInstrumentation)
+Sequel::Database.prepend ROM::SQL::ActiveSupportInstrumentation