Use full list of osm xml root attributes in builder templates

This commit is contained in:
Andy Allan 2019-01-09 14:15:39 +01:00
parent fac3f0ef24
commit 686fee43bf
6 changed files with 16 additions and 10 deletions

View file

@ -1,4 +1,4 @@
xml.instruct! :xml, :version => "1.0"
xml.osm("version" => API_VERSION, "generator" => GENERATOR) do |osm|
xml.osm(OSM::API.new.xml_root_attributes) do |osm|
osm << render(:partial => "api_user", :object => @user)
end

View file

@ -1,4 +1,4 @@
xml.instruct! :xml, :version => "1.0"
xml.osm("version" => API_VERSION, "generator" => GENERATOR) do |osm|
xml.osm(OSM::API.new.xml_root_attributes) do |osm|
osm << render(:partial => "api_user", :collection => @users)
end