]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/nodes/index.json.jbuilder
Merge remote-tracking branch 'upstream/pull/5081'
[rails.git] / app / views / api / nodes / index.json.jbuilder
index 3e3ceb4cc4b3796fb2489d976ce9b4ef264182ae..7708a3498def39f51b4daabc7b72d516515524db 100644 (file)
@@ -1,5 +1,5 @@
 json.partial! "api/root_attributes"
 
 json.partial! "api/root_attributes"
 
-json.elements(@nodes) do |node|
-  json.partial! node
+json.elements do
+  json.array! @nodes, :partial => "node", :as => :node
 end
 end