X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/75a49786f8bcb76715cf4009ba807a844baae282..5ff17da0d72e0a9614b8be6ec916f689615e85c9:/app/views/api/relations/full.json.jbuilder diff --git a/app/views/api/relations/full.json.jbuilder b/app/views/api/relations/full.json.jbuilder index 268de01ca..16331a89e 100644 --- a/app/views/api/relations/full.json.jbuilder +++ b/app/views/api/relations/full.json.jbuilder @@ -1,7 +1,7 @@ -json.partial! "api/map/root_attributes" +json.partial! "api/root_attributes" -all = @nodes + @ways + @relations - -json.elements(all) do |obj| - json.partial! obj +json.elements do + json.array! @nodes, :partial => "/api/nodes/node", :as => :node + json.array! @ways, :partial => "/api/ways/way", :as => :way + json.array! @relations, :partial => "/api/relations/relation", :as => :relation end