On 12 November 2012 19:42, byrnejb <
byr...@harte-lyne.ca> 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 the
> array and update an attribute. When I do this the underlying table row
> changes but the object in the array frequently does not. For example:
>
> count = 0
> current_entries.each do |entry|
> puts( entry.object_id )
> puts( current_entries[count].object_id )
> puts( "***" )
> puts( entry.lock_version )
> entry = set_customs_entry_status_for( entry, status )