X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c38de8027ff70a650a2b01d12bd5eaf0e5307851..76d365ce71b942466d07480ded13098860d4f1b3:/config/initializers/abstract_adapter.rb diff --git a/config/initializers/abstract_adapter.rb b/config/initializers/abstract_adapter.rb index d96742ee5..5613e0d00 100644 --- a/config/initializers/abstract_adapter.rb +++ b/config/initializers/abstract_adapter.rb @@ -1,10 +1,11 @@ -if defined?(ActiveRecord::ConnectionAdaptors::AbstractAdaptor) +if defined?(ActiveRecord::ConnectionAdaptors::AbstractAdapter) module ActiveRecord module ConnectionAdapters class AbstractAdapter - protected + protected + alias_method :old_log, :log - + def log(sql, name) if block_given? old_log(sql, name) do