diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2012-08-02 21:43:26 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2012-08-03 10:00:54 -0300 |
commit | 572ecaef17837550996cf86fabad17c2103e5a7e (patch) | |
tree | 36ac6cc708221dc6373e9372d2f5e78f818674eb /activerecord/lib | |
parent | 55b24888bbe23af3361fa23891c150e28f27809e (diff) | |
download | rails-572ecaef17837550996cf86fabad17c2103e5a7e.tar.gz rails-572ecaef17837550996cf86fabad17c2103e5a7e.tar.bz2 rails-572ecaef17837550996cf86fabad17c2103e5a7e.zip |
Don't eager load all this
Some are loaded from Base which is loaded when a model inherits from it
and some others are used in rake tasks
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record.rb | 65 |
1 files changed, 33 insertions, 32 deletions
diff --git a/activerecord/lib/active_record.rb b/activerecord/lib/active_record.rb index 9147e7605e..5a51aaaced 100644 --- a/activerecord/lib/active_record.rb +++ b/activerecord/lib/active_record.rb @@ -32,6 +32,28 @@ require 'active_record/version' module ActiveRecord extend ActiveSupport::Autoload + autoload :Base + autoload :Callbacks + autoload :Core + autoload :CounterCache + autoload :ConnectionHandling + autoload :DynamicMatchers + autoload :Explain + autoload :Inheritance + autoload :Integration + autoload :Migration + autoload :Migrator, 'active_record/migration' + autoload :Model + autoload :ModelSchema + autoload :NestedAttributes + autoload :Observer + autoload :Persistence + autoload :QueryCache + autoload :Querying + autoload :ReadonlyAttributes + autoload :Reflection + autoload :Sanitization + # ActiveRecord::SessionStore depends on the abstract store in Action Pack. # Eager loading this class would break client code that eager loads Active # Record standalone. @@ -42,6 +64,17 @@ module ActiveRecord # session store its autoload happens at boot time. autoload :SessionStore + autoload :Schema + autoload :SchemaDumper + autoload :SchemaMigration + autoload :Scoping + autoload :Serialization + autoload :Store + autoload :Timestamp + autoload :Transactions + autoload :Translation + autoload :Validations + eager_autoload do autoload :ActiveRecordError, 'active_record/errors' autoload :ConnectionNotEstablished, 'active_record/errors' @@ -63,42 +96,10 @@ module ActiveRecord autoload :PredicateBuilder autoload :SpawnMethods autoload :Batches - autoload :Explain autoload :Delegation end - autoload :Base - autoload :Callbacks - autoload :Core - autoload :CounterCache - autoload :ConnectionHandling - autoload :DynamicMatchers - autoload :Explain - autoload :Inheritance - autoload :Integration - autoload :Migration - autoload :Migrator, 'active_record/migration' - autoload :Model - autoload :ModelSchema - autoload :NestedAttributes - autoload :Observer - autoload :Persistence - autoload :QueryCache - autoload :Querying - autoload :ReadonlyAttributes - autoload :Reflection autoload :Result - autoload :Sanitization - autoload :Schema - autoload :SchemaDumper - autoload :SchemaMigration - autoload :Scoping - autoload :Serialization - autoload :Store - autoload :Timestamp - autoload :Transactions - autoload :Translation - autoload :Validations end module Coders |