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