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