X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/03fb042591bf60cd74aa277ee3de98f02d8486d3..ef7f3d800cbdd49b692df10d312e5fd880e2e938:/config/initializers/abstract_adapter.rb diff --git a/config/initializers/abstract_adapter.rb b/config/initializers/abstract_adapter.rb index f9b711f6c..5613e0d00 100644 --- a/config/initializers/abstract_adapter.rb +++ b/config/initializers/abstract_adapter.rb @@ -2,9 +2,10 @@ 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