Addrecords to this
association. Since +<<+ flattens its argument list and inserts each
record, push and concat
behave identically.
# File activerecord/lib/active_record/associations/collection_association.rb, line 125
def concat(*records)
records = records.flatten
if owner.new_record?
skip_strict_loading { load_target }
concat_records(records)
else
transaction { concat_records(records) }
end
end