[openstreetmap/openstreetmap-website] Move changeset subscribe/unsubscribe to resourceful routes (PR #4583)

Anton Khorev notifications at github.com
Sat Mar 16 03:20:35 UTC 2024


Since changesets are already declared as resources, I moved subscribe/unsubscribe routes under their resources definition. The only problem is that rails named their path helpers differently, `subscribe_changeset_path` etc instead of previous `changeset_subscribe_path`.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Move changeset subscribe/unsubscribe to resourceful routes

-- File Changes --

    M app/mailers/user_mailer.rb (4)
    M config/routes.rb (6)
    M test/controllers/changesets_controller_test.rb (22)
    M test/mailers/user_mailer_test.rb (15)

-- Patch Links --

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

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

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


More information about the rails-dev mailing list