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