]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/abstract_adapter.rb
Convert OpenID authentication to use OmniAuth
[rails.git] / config / initializers / abstract_adapter.rb
index 9042823c28ccd22995be969739a7d9cd93f19ad1..5613e0d007353abd2a7a5b49b23895adec53f66b 100644 (file)
@@ -1,10 +1,11 @@
-if defined?(ActionRecord::ConnectionAdaptors::AbstractAdaptor)
+if defined?(ActiveRecord::ConnectionAdaptors::AbstractAdapter)
   module ActiveRecord
     module ConnectionAdapters
       class AbstractAdapter
   module ActiveRecord
     module ConnectionAdapters
       class AbstractAdapter
-      protected
+        protected
+
         alias_method :old_log, :log
         alias_method :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