Adding comment to work with 1.8.7. Nested Attribute fix.
This commit is contained in:
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)
|
||||
|
Loading…
Reference in New Issue
Block a user