[openstreetmap/openstreetmap-website] Rework user#set_status and #delete to avoid GET requests (#2651)
Andy Allan
notifications at github.com
Wed Jun 10 09:51:40 UTC 2020
This renames the delete action to destroy, and starts using resourceful routing for user actions.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/2651
-- Commit Summary --
* Rework user#set_status and #delete to avoid GET requests
-- File Changes --
M app/abilities/ability.rb (2)
M app/controllers/users_controller.rb (4)
M app/views/users/show.html.erb (12)
M config/routes.rb (5)
M test/controllers/users_controller_test.rb (26)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/2651.patch
https://github.com/openstreetmap/openstreetmap-website/pull/2651.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2651
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200610/0b42501a/attachment.htm>
More information about the rails-dev
mailing list