]> git.openstreetmap.org Git - rails.git/commitdiff
Simplify render calls for changesets
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 26 Jun 2019 12:25:34 +0000 (14:25 +0200)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 26 Jun 2019 12:25:34 +0000 (14:25 +0200)
app/views/api/changesets/changeset.builder
app/views/api/changesets/changesets.builder

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