Skip to content

Commit

Permalink
Fix nested attribute for memory record.
Browse files Browse the repository at this point in the history
  • Loading branch information
arunagw committed May 31, 2011
1 parent 7278547 commit cfb5f1b
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -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|
Expand Down

0 comments on commit cfb5f1b

Please sign in to comment.