Simplify render calls for changesets

This commit is contained in:
Andy Allan 2019-06-26 14:25:34 +02:00
parent 3914050fcc
commit 0211141c08
2 changed files with 2 additions and 2 deletions

View file

@ -3,5 +3,5 @@ xml.instruct! :xml, :version => "1.0"
# basic attributes # basic attributes
xml.osm(OSM::API.new.xml_root_attributes) do |osm| xml.osm(OSM::API.new.xml_root_attributes) do |osm|
osm << render(:partial => "api/changesets/changeset.builder", :locals => { :changeset => @changeset }) osm << render(@changeset)
end end

View file

@ -4,6 +4,6 @@ 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| @changesets.each do |changeset|
osm << render(:partial => "api/changesets/changeset.builder", :locals => { :changeset => changeset }) osm << render(changeset)
end end
end end