Module: ROM::SQL::ActiveSupportInstrumentation
- Defined in:
- lib/rom/sql/extensions/active_support_notifications.rb
Instance Method Summary collapse
Instance Method Details
#log_connection_yield(sql, _conn, args = nil) ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/rom/sql/extensions/active_support_notifications.rb', line 17 def log_connection_yield(sql, _conn, args = nil) ActiveSupport::Notifications.instrument( 'sql.rom', sql: sql, name: instrumentation_name, binds: args ) { super } end |
#log_yield(sql, args = nil) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/rom/sql/extensions/active_support_notifications.rb', line 8 def log_yield(sql, args = nil) ActiveSupport::Notifications.instrument( 'sql.rom', sql: sql, name: instrumentation_name, binds: args ) { super } end |