X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8abe7ec6ed86c05cf15303db0d32453c8ccdfbc9..3123822bba5865e81e8c10be16452a0a8b5362f9:/config/initializers/abstract_adapter.rb?ds=sidebyside diff --git a/config/initializers/abstract_adapter.rb b/config/initializers/abstract_adapter.rb index f9b711f6c..89d384567 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 - alias_method :old_log, :log - + protected + + alias old_log log + def log(sql, name) if block_given? old_log(sql, name) do