X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6a3cadb52d010b333a4acea8942bc4c13394e236..79df0df8c62fa01ea4203f678441c09aaea0fbfb:/config/initializers/abstract_adapter.rb diff --git a/config/initializers/abstract_adapter.rb b/config/initializers/abstract_adapter.rb index d96742ee5..89d384567 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 - alias_method :old_log, :log - + protected + + alias old_log log + def log(sql, name) if block_given? old_log(sql, name) do