]> git.openstreetmap.org Git - rails.git/commit
Rework user#set_status and #delete to avoid GET requests
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 10 Jun 2020 09:49:18 +0000 (11:49 +0200)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 10 Jun 2020 09:49:18 +0000 (11:49 +0200)
commit600812f6ad23ab7e1cb3ab25c4b09844ba6daa55
tree63ed2fafca82883dce5459dd506e30d3f8d86680
parentf1c31dac254bde0435c2ccd26baf91febe4835fb
Rework user#set_status and #delete to avoid GET requests

This renames the delete action to destroy, and starts using resourceful
routing for user actions.
app/abilities/ability.rb
app/controllers/users_controller.rb
app/views/users/show.html.erb
config/routes.rb
test/controllers/users_controller_test.rb