]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/abstract_adapter.rb
Improve vagrant configuration
[rails.git] / config / initializers / abstract_adapter.rb
index d96742ee50e9494e5e2759b145e46c6340ff5ad6..5613e0d007353abd2a7a5b49b23895adec53f66b 100644 (file)
@@ -1,10 +1,11 @@
-if defined?(ActiveRecord::ConnectionAdaptors::AbstractAdaptor)
+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