Skip to content

Commit c938651

Browse files
committed
last one hopefully
1 parent 8aeb7e7 commit c938651

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby/hyper-model/lib/reactive_record/active_record/reactive_record/isomorphic_base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def self.gather_records(records_to_process, force, record_being_saved)
233233
if association.collection?
234234
# following line changed from .all to .collection on 10/28
235235
[*value.collection, *value.unsaved_children].each do |assoc|
236-
add_new_association.call(record, attribute, assoc.backing_record) if assoc.changed?(association.inverse_of(assoc)) or assoc.new?
236+
add_new_association.call(record, attribute, assoc.backing_record) if assoc.changed?(association.inverse_of(assoc)) or assoc.new_record?
237237
end
238238
elsif record.new? || record.changed?(attribute) || (record == record_being_saved && force)
239239
if value.nil?

0 commit comments

Comments
 (0)