Changeset: avoid XML rendering in loop
This commit is contained in:
parent
fa9654fe90
commit
ccdc427a5d
1 changed files with 1 additions and 4 deletions
|
@ -1,7 +1,4 @@
|
||||||
xml.instruct! :xml, :version => "1.0"
|
xml.instruct! :xml, :version => "1.0"
|
||||||
|
|
||||||
xml.osm(OSM::API.new.xml_root_attributes) do |osm|
|
xml.osm(OSM::API.new.xml_root_attributes) do |osm|
|
||||||
@changesets.each do |changeset|
|
osm << (render(@changesets) || "")
|
||||||
osm << render(changeset)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue