Simplify render calls for changesets
This commit is contained in:
parent
3914050fcc
commit
0211141c08
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue