blob: 06d3e400805f29c875a74b4587d59b668cb47f76 (
plain) (
tree)
|
|
require 'active_support/orchestra'
ActiveSupport::Orchestra.subscribe("sql") do |event|
ActiveRecord::Base.connection.log_info(event.payload[:sql], event.payload[:name], event.duration)
end
|