]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/old_ways/show.json.jbuilder
Merge pull request #5331 from AntonKhorev/trace-badges-text-bg
[rails.git] / app / views / api / old_ways / show.json.jbuilder
index c66488526a01ffdd713f8ab2f6af97c19c222262..ee21d0f4121270f77250647e4166755469386a0d 100644 (file)
@@ -1,5 +1,5 @@
 json.partial! "api/root_attributes"
 
-json.elements([@old_element]) do |old_way|
-  json.partial! old_way
+json.elements do
+  json.array! [@old_element], :partial => "old_way", :as => :old_way
 end