Adding comment to work with 1.8.7. Nested Attribute fix.

This commit is contained in:
Arun Agrawal 2011-05-31 12:12:19 +05:30
parent cfb5f1b608
commit 2e57b66931

@ -402,6 +402,9 @@ def merge_target_lists(persisted, memory)
return memory if persisted.empty?
persisted.map! do |record|
# To work with ruby 1.8.7
# > 1.9 #=> mem_record = memory.delete(record)
mem_record_index = memory.index(record)
if mem_record_index
mem_record = memory.at(mem_record_index)