提交 cfb5f1b6 编写于 作者: A Arun Agrawal

Fix nested attribute for memory record.

上级 7278547a
......@@ -402,7 +402,11 @@ def merge_target_lists(persisted, memory)
return memory if persisted.empty?
persisted.map! do |record|
mem_record = memory.delete(record)
mem_record_index = memory.index(record)
if mem_record_index
mem_record = memory.at(mem_record_index)
memory.delete_at(mem_record_index)
end
if mem_record
(record.attribute_names - mem_record.changes.keys).each do |name|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册