]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/ways/index.json.jbuilder
Merge remote-tracking branch 'upstream/pull/4965'
[rails.git] / app / views / api / ways / index.json.jbuilder
index 19e59cfb8885d3ff00d9978d0faa9a8489fac154..7b8de5f1c975410e0f7dbc74ef089969bf9eaf01 100644 (file)
@@ -1,5 +1,5 @@
 json.partial! "api/root_attributes"
 
-json.elements(@ways) do |way|
-  json.partial! way
+json.elements do
+  json.array! @ways, :partial => "way", :as => :way
 end