]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/users/index.builder
Simplify partial rendering when the partial is named after the model
[rails.git] / app / views / api / users / index.builder
index 68d629099f45177b13242a24d8bdb2cd9a1cd7fd..60fcfa898efbe8aa2068d9b0dbef2f9d52cae4c5 100644 (file)
@@ -1,4 +1,4 @@
 xml.instruct! :xml, :version => "1.0"
 xml.osm(OSM::API.new.xml_root_attributes) do |osm|
-  osm << render(:partial => "user", :collection => @users)
+  osm << render(@users)
 end