Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 64d44e6

Browse files
committed
fixes #82 correctly
1 parent 270540e commit 64d44e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/reactive_record/active_record/reactive_record/isomorphic_base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ def self.save_records(models, associations, acting_user, validate, save)
371371
end
372372
reactive_records[model_to_save[:id]] = vectors[vector] = record = find_record(model, id, vector, save) # ??? || validate ???
373373
next unless record
374-
if record.attributes.empty?
374+
if attributes.empty?
375375
dont_save_list << record unless save
376376
elsif record.respond_to?(:id) && record.id
377377
# we have an already exising activerecord model

0 commit comments

Comments
 (0)