-
-
Save spastorino/e108d17ca5d9ae97135b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 10ad58986d6c93649119dac1fc755e4d33d7a18b | |
Author: Santiago Pastorino <santiago@wyeworks.com> | |
Date: Thu Aug 2 21:43:26 2012 -0300 | |
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 | |
diff --git a/activerecord/lib/active_record.rb b/activerecord/lib/active_record.rb | |
index 9147e76..45caa62 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' | |
@@ -67,38 +100,7 @@ module ActiveRecord | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment