method

preloader_for

rails latest stable - Class: ActiveRecord::Associations::Preloader::Branch
preloader_for(reflection)
private

Returns a class containing the logic needed to load preload the data and attach it to a relation. The class returned implements a `run` method that accepts a preloader.