[openstreetmap/openstreetmap-website] Use resourceful routes for granting/revoking user roles (PR #5293)
Anton Khorev
notifications at github.com
Mon Oct 28 00:50:17 UTC 2024
Replaces:
- `post grant_role_path` with `put user_role_path`
- `post revoke_role_path` with `delete user_role_path`
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/5293
-- Commit Summary --
* Use resourceful routes for granting/revoking user roles
-- File Changes --
M app/abilities/ability.rb (2)
M app/controllers/concerns/user_methods.rb (5)
M app/controllers/user_roles_controller.rb (8)
M app/helpers/user_roles_helper.rb (8)
M config/routes.rb (8)
M test/controllers/user_roles_controller_test.rb (46)
M test/helpers/user_roles_helper_test.rb (36)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/5293.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5293.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5293
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5293 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20241027/6449df7a/attachment.htm>
More information about the rails-dev
mailing list