]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/abstract_adapter.rb
Correctly sort the Copyright item in the compact menu
[rails.git] / config / initializers / abstract_adapter.rb
index d96742ee50e9494e5e2759b145e46c6340ff5ad6..89d38456745e8fa9492bc9a0800356f432cc7633 100644 (file)
@@ -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