1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/active_record
Yves Senn fc4c15d823 eager_autoload needs to be triggered for nested constants.
When `ActiveRecord::Associations.eager_load!` is called, it eager loads
the `Preloader` but does not trigger a `eager_load!` on the `Preloader`
itself. A eager loaded component is responsible to forward the
`eager_load!` call to nested constants that make use of `eager_autoload`
as well.

This will also resolve the occasional `NameError` that we've observed in
production:

```
NameError: uninitialized constant ActiveRecord::Associations::Preloader::BelongsTo
```
2016-11-21 12:41:35 +01:00
..
associations Merge pull request #26980 from kamipo/respect_new_records_for_collection_proxy_distinct 2016-11-17 14:55:19 -05:00
attribute normalizes indentation and whitespace across the project 2016-08-06 20:16:27 +02:00
attribute_methods fix datatime error 2016-11-01 18:17:26 -07:00
attribute_set normalizes indentation and whitespace across the project 2016-08-06 20:16:27 +02:00
coders let Regexp#match? be globally available 2016-10-27 09:13:55 +02:00
connection_adapters Merge pull request #27057 from kamipo/fix_race_condition 2016-11-19 20:33:02 +10:30
fixture_set Add three new rubocop rules 2016-08-16 04:30:11 -03:00
locale
locking Small grammar fix for #26867 2016-10-23 12:21:35 -04:00
migration Fix broken comments indentation caused by rubocop auto-correct [ci skip] 2016-09-14 18:26:32 +09:00
railties Add three new rubocop rules 2016-08-16 04:30:11 -03:00
relation Merge pull request #26981 from kamipo/should_not_except_order_for_exists 2016-11-17 18:27:25 -05:00
scoping Add missing + around a some literals. 2016-10-27 00:27:47 +03:00
tasks Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
type Revert "Made ActiveRecord consistently use ActiveRecord::Type (not" 2016-10-23 09:19:54 +03:00
type_caster normalizes indentation and whitespace across the project 2016-08-06 20:16:27 +02:00
validations Merge pull request #26905 from bogdanvlviv/docs 2016-11-13 14:09:30 +00:00
aggregations.rb Add missing + around a some literals. 2016-10-27 00:27:47 +03:00
association_relation.rb Ensure that inverse associations are set before running callbacks 2016-08-31 09:26:25 -04:00
associations.rb eager_autoload needs to be triggered for nested constants. 2016-11-21 12:41:35 +01:00
attribute.rb Add Type.default_value and use it everywhere for internal 2016-08-26 02:14:06 +09:00
attribute_assignment.rb Fix broken comments indentation caused by rubocop auto-correct [ci skip] 2016-09-14 18:26:32 +09:00
attribute_decorators.rb normalizes indentation and whitespace across the project 2016-08-06 20:16:27 +02:00
attribute_methods.rb Fix broken comments indentation caused by rubocop auto-correct [ci skip] 2016-09-14 18:26:32 +09:00
attribute_mutation_tracker.rb Deprecate the behavior of AR::Dirty inside of after_(create|update|save) callbacks 2016-11-01 13:16:33 -04:00
attribute_set.rb normalizes indentation and whitespace across the project 2016-08-06 20:16:27 +02:00
attributes.rb Corrected comments referring to documentation in 2016-10-03 11:29:31 +01:00
autosave_association.rb Deprecate the behavior of AR::Dirty inside of after_(create|update|save) callbacks 2016-11-01 13:16:33 -04:00
base.rb Deprecate the behavior of AR::Dirty inside of after_(create|update|save) callbacks 2016-11-01 13:16:33 -04:00
callbacks.rb Deprecate the behavior of AR::Dirty inside of after_(create|update|save) callbacks 2016-11-01 13:16:33 -04:00
collection_cache_key.rb applies remaining conventions across the project 2016-08-06 20:20:22 +02:00
connection_handling.rb fixes remaining RuboCop issues [Vipul A M, Xavier Noria] 2016-09-01 23:41:49 +02:00
core.rb Don't assign default attributes until after loading schema 2016-11-03 13:57:13 -04:00
counter_cache.rb code gardening: removes redundant selfs 2016-08-08 01:12:38 +02:00
define_callbacks.rb Fix style violations 2016-11-14 13:18:31 -05:00
dynamic_matchers.rb let Regexp#match? be globally available 2016-10-27 09:13:55 +02:00
enum.rb code gardening: removes redundant selfs 2016-08-08 01:12:38 +02:00
errors.rb Add missing + around a some literals. 2016-10-27 00:27:47 +03:00
explain.rb applies new string literal convention in activerecord/lib 2016-08-06 18:26:45 +02:00
explain_registry.rb applies new string literal convention in activerecord/lib 2016-08-06 18:26:45 +02:00
explain_subscriber.rb Preserve cached queries name in AS notifications 2016-09-22 15:30:45 +02:00
fixtures.rb Fix spelling in API docs 2016-11-12 15:06:18 -05:00
gem_version.rb Start Rails 5.1 development 🎉 2016-05-10 03:46:56 -03:00
inheritance.rb Fix broken comments indentation caused by rubocop auto-correct [ci skip] 2016-09-14 18:26:32 +09:00
integration.rb Add missing + around a some literals. 2016-10-27 00:27:47 +03:00
internal_metadata.rb applies new string literal convention in activerecord/lib 2016-08-06 18:26:45 +02:00
legacy_yaml_adapter.rb Make Active Record emit significantly smaller YAML 2016-05-31 14:58:43 -04:00
log_subscriber.rb Use old typecasting method if no type casted binds are passed in 2016-10-20 09:27:14 -07:00
migration.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
model_schema.rb Add missing + around a some literals. 2016-10-27 00:27:47 +03:00
nested_attributes.rb Fix broken comments indentation caused by rubocop auto-correct [ci skip] 2016-09-14 18:26:32 +09:00
no_touching.rb Makes touch_later respects no_touching policy 2016-08-16 15:20:50 +02:00
null_relation.rb Refactor NullRelation#calculate 2016-11-16 02:42:24 +09:00
persistence.rb Deprecate the behavior of AR::Dirty inside of after_(create|update|save) callbacks 2016-11-01 13:16:33 -04:00
query_cache.rb Configure query caching (per thread) on the connection pool 2016-11-06 02:19:57 -05:00
querying.rb Ensure that inverse associations are set before running callbacks 2016-08-31 09:26:25 -04:00
railtie.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
readonly_attributes.rb code gardening: removes redundant selfs 2016-08-08 01:12:38 +02:00
reflection.rb Merge pull request #26905 from bogdanvlviv/docs 2016-11-13 14:09:30 +00:00
relation.rb docs, add update_all example with SQL fragment. [ci skip] 2016-11-16 08:52:49 +01:00
result.rb Add Type.default_value and use it everywhere for internal 2016-08-26 02:14:06 +09:00
runtime_registry.rb applies new string literal convention in activerecord/lib 2016-08-06 18:26:45 +02:00
sanitization.rb let Regexp#match? be globally available 2016-10-27 09:13:55 +02:00
schema.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
schema_dumper.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
schema_migration.rb applies new string literal convention in activerecord/lib 2016-08-06 18:26:45 +02:00
scoping.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
secure_token.rb Add three new rubocop rules 2016-08-16 04:30:11 -03:00
serialization.rb
statement_cache.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
store.rb code gardening: removes redundant selfs 2016-08-08 01:12:38 +02:00
suppressor.rb Keep state around for nested calls to #suppress 2016-05-16 14:07:32 -04:00
table_metadata.rb Merge pull request #26282 from kamipo/add_type_default_value 2016-08-31 10:06:43 -04:00
timestamp.rb Deprecate the behavior of AR::Dirty inside of after_(create|update|save) callbacks 2016-11-01 13:16:33 -04:00
touch_later.rb Deprecate the behavior of AR::Dirty inside of after_(create|update|save) callbacks 2016-11-01 13:16:33 -04:00
transactions.rb Fix broken comments indentation caused by rubocop auto-correct [ci skip] 2016-09-14 18:26:32 +09:00
translation.rb
type.rb Revert "Made ActiveRecord consistently use ActiveRecord::Type (not" 2016-10-23 09:19:54 +03:00
type_caster.rb applies new string literal convention in activerecord/lib 2016-08-06 18:26:45 +02:00
validations.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
version.rb applies new string literal convention in activerecord/lib 2016-08-06 18:26:45 +02:00