method

preloader_for

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.