]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/old_nodes/history.json.jbuilder
Use Bootstrap pagination for note lists
[rails.git] / app / views / api / old_nodes / history.json.jbuilder
index b0e97e832553cb24a114c001f79bb35da859ee19..3a800d07d55f670ac575f98ab78882f2fae04eba 100644 (file)
@@ -1,5 +1,5 @@
-json.partial! "api/map/root_attributes"
+json.partial! "api/root_attributes"
 
-json.elements(@elems) do |old_node|
-  json.partial! old_node
+json.elements do
+  json.array! @elems, :partial => "old_node", :as => :old_node
 end