records.each do |record|
add_to_target(record) do |rec|
result &&= insert_record(rec, true, should_raise) unless owner.
a &&= b is a short form (aka syntactic sugar) for:
a && a = b
This short form is provided for operators (including but not possibly limited to)
|| (credits to @Stefan for full list of supported operators shortcuts):
a = 5 a += 5 #⇒ 10 a = true a &&= true #⇒ true a &&= false #⇒ false