Class: OccamsRecord::EagerLoaders::HasMany
- Defined in:
- lib/occams-record/eager_loaders/has_many.rb
Overview
Eager loader for has_many associations.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#merge!(assoc_rows, rows) ⇒ Object
Merge the association rows into the given rows.
Methods inherited from HasOne
Methods inherited from Base
Constructor Details
This class inherits a constructor from OccamsRecord::EagerLoaders::Base
Instance Method Details
#merge!(assoc_rows, rows) ⇒ Object
Merge the association rows into the given rows.
11 12 13 14 |
# File 'lib/occams-record/eager_loaders/has_many.rb', line 11 def merge!(assoc_rows, rows) Merge.new(rows, name). many!(assoc_rows, @ref.active_record_primary_key, @ref.foreign_key) end |