X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/81fb26d840767e04d364a0a24d186e1a35ab4b5f..341ff0a06b86dac7af0d3028bfa25fe609c18cff:/app/views/api/notes/index.json.jbuilder?ds=sidebyside diff --git a/app/views/api/notes/index.json.jbuilder b/app/views/api/notes/index.json.jbuilder index 7909391f5..5660a8ad5 100644 --- a/app/views/api/notes/index.json.jbuilder +++ b/app/views/api/notes/index.json.jbuilder @@ -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