]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/old_nodes/history.json.jbuilder
Merge branch 'pull/5196'
[rails.git] / app / views / api / old_nodes / history.json.jbuilder
index 96e8cca2d30a9f722ac6647e9722f31ad3490c6d..3a800d07d55f670ac575f98ab78882f2fae04eba 100644 (file)
@@ -1,5 +1,5 @@
 json.partial! "api/root_attributes"
 
-json.elements(@elems) do |old_node|
-  json.partial! old_node
+json.elements do
+  json.array! @elems, :partial => "old_node", :as => :old_node
 end