]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/relations/index.json.jbuilder
Merge remote-tracking branch 'upstream/pull/5434'
[rails.git] / app / views / api / relations / index.json.jbuilder
index f170cb150d54f1fdd1c80ad6bc45feb03fb731ac..9b0f65bf1eb0fb09e20dee4c8102b6cd9c0da897 100644 (file)
@@ -1,5 +1,5 @@
 json.partial! "api/root_attributes"
 
 json.partial! "api/root_attributes"
 
-json.elements(@relations) do |relation|
-  json.partial! relation
+json.elements do
+  json.array! @relations, :partial => "relation", :as => :relation
 end
 end