]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/nodes/show.json.jbuilder
Merge pull request #5362 from AntonKhorev/color-mode-preference-map
[rails.git] / app / views / api / nodes / show.json.jbuilder
index 9974da82ffccab5e2785a80b69125a1f7da63c1f..bcbd29b5e82c14e561557ffd5838bb8ec3fb2538 100644 (file)
@@ -1,5 +1,5 @@
 json.partial! "api/root_attributes"
 
-json.elements([@node]) do |node|
-  json.partial! node
+json.elements do
+  json.array! [@node], :partial => "node", :as => :node
 end