[openstreetmap/openstreetmap-website] Use @elements instead of @elems in api element history (PR #6356)

Anton Khorev notifications at github.com
Tue Aug 26 14:48:58 UTC 2025


Eliminates `@elems` instance variable. Otherwise there are both `@elements` and `@elems` and the difference is that one is filtered by redactions and the other is not, which you can't guess from their names.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/6356

-- Commit Summary --

  * Use @elements instead of @elems in api element history

-- File Changes --

    M app/controllers/api/old_elements_controller.rb (6)
    M app/views/api/old_nodes/index.json.jbuilder (2)
    M app/views/api/old_nodes/index.xml.builder (2)
    M app/views/api/old_relations/index.json.jbuilder (2)
    M app/views/api/old_relations/index.xml.builder (2)
    M app/views/api/old_ways/index.json.jbuilder (2)
    M app/views/api/old_ways/index.xml.builder (2)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/6356.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6356.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6356
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6356 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250826/dfac38e5/attachment.htm>


More information about the rails-dev mailing list