]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/old_relations/show.json.jbuilder
Adapt richtext javascript to Turbo
[rails.git] / app / views / api / old_relations / show.json.jbuilder
index 5b33e4b85073c3fc2330a641f857bba78609bcb4..bd767b3dfa5421a74271c1c26b09f6304edd8458 100644 (file)
@@ -1,5 +1,5 @@
 json.partial! "api/root_attributes"
 
-json.elements([@old_element]) do |old_relation|
-  json.partial! old_relation
+json.elements do
+  json.array! [@old_element], :partial => "old_relation", :as => :old_relation
 end