]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/old_ways/history.json.jbuilder
Merge pull request #5331 from AntonKhorev/trace-badges-text-bg
[rails.git] / app / views / api / old_ways / history.json.jbuilder
index b5cf80d095a72e65cd3b8f69e28efa90a596a457..9e98901f50643ca7d8e4a9224278842a8c43f73b 100644 (file)
@@ -1,5 +1,5 @@
 json.partial! "api/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
 end