]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/abstract_adapter.rb
Add banner for FOSSGIS 2016 conference
[rails.git] / config / initializers / abstract_adapter.rb
index f9b711f6ce0f6387efea1dfc8e5e923b21a3aaf6..89d38456745e8fa9492bc9a0800356f432cc7633 100644 (file)
@@ -2,9 +2,10 @@ if defined?(ActiveRecord::ConnectionAdaptors::AbstractAdapter)
   module ActiveRecord
     module ConnectionAdapters
       class 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
         def log(sql, name)
           if block_given?
             old_log(sql, name) do