]> git.openstreetmap.org Git - rails.git/blob - app/views/api/changesets/download.xml.builder
Merge remote-tracking branch 'upstream/pull/5168'
[rails.git] / app / views / api / changesets / download.xml.builder
1 xml.instruct! :xml, :version => "1.0"
2
3 xml.osmChange(OSM::API.new.xml_root_attributes) do |osm|
4   @created.each do |elt|
5     osm.create do |create|
6       create << render(elt)
7     end
8   end
9   @modified.each do |elt|
10     osm.modify do |modify|
11       modify << render(elt)
12     end
13   end
14   @deleted.each do |elt|
15     osm.delete do |delete|
16       delete << render(elt)
17     end
18   end
19 end