Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

get activerecord tests passing with lazy loading

  • Loading branch information...
commit d6b923adbdfc9a4df20132f741bbfb43db12113c 1 parent 21901e9
@josh josh authored
View
3  activerecord/lib/active_record.rb
@@ -37,6 +37,9 @@ def self.load_all!
[Base, DynamicFinderMatch, ConnectionAdapters::AbstractAdapter]
end
+ autoload :ActiveRecordError, 'active_record/base'
+ autoload :ConnectionNotEstablished, 'active_record/base'
+
autoload :Aggregations, 'active_record/aggregations'
autoload :AssociationPreload, 'active_record/association_preload'
autoload :Associations, 'active_record/associations'
View
3  activerecord/lib/active_record/base.rb
@@ -2990,3 +2990,6 @@ def clone_attribute_value(reader_method, attribute_name)
include Aggregations, Transactions, Reflection, Calculations, Serialization
end
end
+
+# TODO: Remove this and make it work with LAZY flag
+require 'active_record/connection_adapters/abstract_adapter'
Please sign in to comment.
Something went wrong with that request. Please try again.