method
preloader_for
v5.0.0.1 -
Show latest stable
- Class:
ActiveRecord::Associations::Preloader
preloader_for(reflection, owners, rhs_klass)private
Returns a class containing the logic needed to load preload the data and attach it to a relation. For example +Preloader::Association+ or +Preloader::HasManyThrough+. The class returned implements a `run` method that accepts a preloader.