]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/old_nodes/show.json.jbuilder
Merge remote-tracking branch 'upstream/pull/5168'
[rails.git] / app / views / api / old_nodes / show.json.jbuilder
index f63e07d439105ae17ea0134aeea046fd982f06d8..c6929ea825bfe76fc211c2ac7492ea6eb9948730 100644 (file)
@@ -1,5 +1,5 @@
 json.partial! "api/root_attributes"
 
-json.elements([@old_element]) do |old_node|
-  json.partial! old_node
+json.elements do
+  json.array! [@old_element], :partial => "old_node", :as => :old_node
 end