- # update the visibility etc on the current nodes
- update_time = Time.now()
-
- Node.update(node_ids_to_delete, {:user_id => user.id, :timestamp => update_time, :visibility => false})
-
- # create old nodes
-
- old_nodes_to_create = []
- OldNode.find(node_ids_to_delete).each do |old_node|
- old_nodes_to_create << {:id => old_node.id, :timestamp => update_time, :latitude => old_node.latitude, :longitude => old_node.longitude, :visible => false}