From 0472d7b0bc68fbf7b4179aa0f1be51a369562179 Mon Sep 17 00:00:00 2001 From: mmd-osm Date: Sun, 4 Aug 2024 21:50:07 +0200 Subject: [PATCH] Users: avoid calling json.partial! in loop --- app/views/api/users/index.json.jbuilder | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/api/users/index.json.jbuilder b/app/views/api/users/index.json.jbuilder index 1ad07d47c..d2dbd4d4f 100644 --- a/app/views/api/users/index.json.jbuilder +++ b/app/views/api/users/index.json.jbuilder @@ -1,5 +1,5 @@ json.partial! "api/root_attributes" -json.users(@users) do |user| - json.partial! user +json.users do + json.array! @users, :partial => "user", :as => :user end -- 2.39.5