From: mmd-osm Date: Sun, 4 Aug 2024 19:48:09 +0000 (+0200) Subject: Changesets: avoid calling json.partial! in loop X-Git-Tag: live~257^2~3 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/a5a6713bfcc4871060cbc3817e99ce7b23bbb8e7?ds=inline Changesets: avoid calling json.partial! in loop --- diff --git a/app/views/api/changesets/index.json.jbuilder b/app/views/api/changesets/index.json.jbuilder index f52d69865..ce094fa34 100644 --- a/app/views/api/changesets/index.json.jbuilder +++ b/app/views/api/changesets/index.json.jbuilder @@ -1,5 +1,5 @@ json.partial! "api/root_attributes" -json.changesets(@changesets) do |changeset| - json.partial! changeset +json.changesets do + json.array! @changesets, :partial => "changeset", :as => :changeset end