Permalink
Browse files

lazy load ConnectionAdapters remove require.

  • Loading branch information...
1 parent 5b6121a commit 1efd88283ef68d912df215125951a87526768a51 @vatrai vatrai committed Jul 22, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −1 activerecord/lib/active_record.rb
  2. +0 −2 activerecord/lib/active_record/base.rb
@@ -41,7 +41,8 @@ module ActiveRecord
eager_autoload do
autoload :ActiveRecordError, 'active_record/errors'
autoload :ConnectionNotEstablished, 'active_record/errors'
-
+ autoload :ConnectionAdapters, 'active_record/connection_adapters/abstract_adapter'
+
autoload :Aggregations
autoload :Associations
autoload :AttributeMethods
@@ -2163,6 +2163,4 @@ def clear_timestamp_attributes
end
end
-# TODO: Remove this and make it work with LAZY flag
-require 'active_record/connection_adapters/abstract_adapter'
ActiveSupport.run_load_hooks(:active_record, ActiveRecord::Base)

0 comments on commit 1efd882

Please sign in to comment.