On Mon, November 12, 2012 15:44, Colin Law wrote: > On 12 November 2012 19:42, byrnejb <[email protected]> wrote: >> Perhaps this is a Rails issue. However, I need to first determine >> whether I simply am missing something about updating members of >> an array. >> >> I have an array of 10 ActiveRecord objects. I wish to iterate over > > You have not shown us set_customs_entry_status_for but it might be > informative to try a > puts( entry.object_id ) here. >
The answer to the source of the problem actually was in the object_ids given in my original message. I just did not see what my data was telling me. There is a contingent update on entry when a different model is updated. This was creating the stale record issue because the table was being updated via a different set of objects from those under examination in the test. -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:[email protected] Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

