Changesets: avoid calling json.partial! in loop

This commit is contained in:
mmd-osm 2024-08-04 21:48:09 +02:00
parent fa9654fe90
commit a5a6713bfc

View file

@ -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