Notes: avoid calling json.partial! in loop

This commit is contained in:
mmd-osm 2024-08-04 21:49:38 +02:00
parent 14184b1b2e
commit 341ff0a06b

View file

@ -1,5 +1,5 @@
json.type "FeatureCollection"
json.features(@notes) do |note|
json.partial! note
json.features do
json.array! @notes, :partial => "note", :as => :note
end