method
concat_records
v7.1.3.2 -
Show latest stable
- Class:
ActiveRecord::Associations::HasManyThroughAssociation
concat_records(records)private
No documentation available.
# File activerecord/lib/active_record/associations/has_many_through_association.rb, line 37
def concat_records(records)
ensure_not_nested
records = super(records, true)
if owner.new_record? && records
records.flatten.each do |record|
build_through_record(record)
end
end
records
end