rails--rails/activerecord/lib
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
..
active_record `eager_autoload` needs to be triggered for nested constants. 2016-11-21 12:41:35 +01:00
rails/generators let Regexp#match? be globally available 2016-10-27 09:13:55 +02:00
active_record.rb Eager autoload ActiveRecord::TableMetadata 2016-08-15 14:12:08 -07:00