]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/users/index.json.jbuilder
Merge pull request #5056 from AntonKhorev/diary-og-description
[rails.git] / app / views / api / users / index.json.jbuilder
index 1ad07d47cd2639cc63d49ae093b9785478a5868b..d2dbd4d4f5c6113fd03a381e779215dabe3e58c4 100644 (file)
@@ -1,5 +1,5 @@
 json.partial! "api/root_attributes"
 
 json.partial! "api/root_attributes"
 
-json.users(@users) do |user|
-  json.partial! user
+json.users do
+  json.array! @users, :partial => "user", :as => :user
 end
 end