]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/users/index.json.jbuilder
Add social sharing functionality
[rails.git] / app / views / api / users / index.json.jbuilder
index efc905cfea3aa680d56eaa62c7c56df930f18998..d2dbd4d4f5c6113fd03a381e779215dabe3e58c4 100644 (file)
@@ -1,3 +1,5 @@
-json.users(@users) do |user|
-  json.partial! user
+json.partial! "api/root_attributes"
+
+json.users do
+  json.array! @users, :partial => "user", :as => :user
 end
 end