From: Tom Hughes Date: Fri, 15 May 2009 09:18:10 +0000 (+0000) Subject: Arrays of object IDs are a bad idea. X-Git-Tag: live~7487 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/fe13e13d16e3f2f8c770a02e06bf25e173df1b77?hp=fa13a11a94a96e47582483503753ced3db438f6f Arrays of object IDs are a bad idea. --- diff --git a/app/controllers/relation_controller.rb b/app/controllers/relation_controller.rb index 63e58819b..2171f6cc4 100644 --- a/app/controllers/relation_controller.rb +++ b/app/controllers/relation_controller.rb @@ -119,7 +119,7 @@ class RelationController < ApplicationController # create XML. doc = OSM::API.new.get_xml_doc visible_nodes = {} - visible_members = { "Node" => [], "Way" => [], "Relation" => [] } + visible_members = { "Node" => {}, "Way" => {}, "Relation" => {} } changeset_cache = {} user_display_name_cache = {}