Flowdock
method

add_preloaded_record_to_collection

Importance_0
v2.3.8 - Show latest stable - 0 notes - Class: ActiveRecord::AssociationPreload::ClassMethods
add_preloaded_record_to_collection(parent_records, reflection_name, associated_record) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/association_preload.rb, line 133
      def add_preloaded_record_to_collection(parent_records, reflection_name, associated_record)
        parent_records.each do |parent_record|
          parent_record.send("set_#{reflection_name}_target", associated_record)
        end
      end
Register or log in to add new notes.