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

Commit 4ab2412

Browse files
committed
closes #11
1 parent 18f6157 commit 4ab2412

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/reactive_record/active_record/reactive_record/isomorphic_base.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def self.find_record(model, id, vector, save)
359359
object.send(method)
360360
end
361361
end
362-
if id and (found.nil? or !(found.class <= model) or (!found.id.nil? and found.id.to_s != id.to_s))
362+
if id and (found.nil? or !(found.class <= model) or (found.id and found.id.to_s != id.to_s))
363363
raise "Inconsistent data sent to server - #{model.name}.find(#{id}) != [#{vector}]"
364364
end
365365
found
@@ -506,7 +506,7 @@ def self.save_records(models, associations, acting_user, validate, save)
506506

507507
else
508508

509-
vectors.each { |vector, model| model.reload unless model.nil? or model.new_record? }
509+
vectors.each { |vector, model| model.reload unless model.nil? or model.new_record? or model.frozen? }
510510
vectors
511511

512512
end

spec/test_app/Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ../..
33
specs:
4-
reactive-record (0.7.33)
4+
reactive-record (0.7.34)
55
opal-browser
66
opal-rails
77
rails (>= 3.2.13)

0 commit comments

Comments
 (0)