]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/old_ways/history.json.jbuilder
Merge branch 'pull/5196'
[rails.git] / app / views / api / old_ways / history.json.jbuilder
index b231d7de1d9216f5ba2346f2c3e794404ee2dc0b..9e98901f50643ca7d8e4a9224278842a8c43f73b 100644 (file)
@@ -1,5 +1,5 @@
-json.partial! "api/map/root_attributes"
+json.partial! "api/root_attributes"
 
-json.elements(@elems) do |old_way|
-  json.partial! old_way
+json.elements do
+  json.array! @elems, :partial => "old_way", :as => :old_way
 end