@k-yle commented on this pull request.
> @@ -0,0 +1,7 @@
+json.partial! "api/root_attributes"
+
+json.osmChange do
+ json.create @created.map { |elt| JSON.parse(render(partial:
"api/#{elt.to_partial_path}", object: elt)) }
+ json.modify @modified.map { |elt| JSON.parse(render(partial:
"api/#{elt.to_partial_path}", object: elt)) }
+ json.delete @deleted.map { |elt| JSON.parse(render(partial:
"api/#{elt.to_partial_path}", object: elt)) }
any suggestions how to do it more efficiently? I experimented with jbuilder's
`.merge` but couldn't find a solution
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5973#discussion_r2070163342
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/5973/review/2809623...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev