From ccdc427a5db2f4f8fe018b6e2272e8793c66a9a6 Mon Sep 17 00:00:00 2001 From: mmd-osm Date: Sun, 4 Aug 2024 22:35:48 +0200 Subject: [PATCH 1/1] Changeset: avoid XML rendering in loop --- app/views/api/changesets/index.xml.builder | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/views/api/changesets/index.xml.builder b/app/views/api/changesets/index.xml.builder index 5ff7e2620..286f50c35 100644 --- a/app/views/api/changesets/index.xml.builder +++ b/app/views/api/changesets/index.xml.builder @@ -1,7 +1,4 @@ xml.instruct! :xml, :version => "1.0" - xml.osm(OSM::API.new.xml_root_attributes) do |osm| - @changesets.each do |changeset| - osm << render(changeset) - end + osm << (render(@changesets) || "") end -- 2.39.5