Module: Switchman::ActiveRecord::Associations::Preloader::Association::LoaderQuery
- Defined in:
- lib/switchman/active_record/associations.rb
Instance Method Summary collapse
Instance Method Details
#load_records_in_batch(loaders) ⇒ Object
87 88 89 90 91 92 93 94 95 96 |
# File 'lib/switchman/active_record/associations.rb', line 87 def load_records_in_batch(loaders) # While in theory loading multiple associations that end up being effectively the same would be nice # it's not very switchman compatible, so just don't bother trying to use that logic # raw_records = records_for(loaders) loaders.each do |loader| loader.load_records(nil) loader.run end end |