]> git.openstreetmap.org Git - rails.git/commit
Rename User#delete to User#destroy
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 22 Dec 2021 11:32:33 +0000 (11:32 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 22 Dec 2021 11:32:33 +0000 (11:32 +0000)
commita863be8831efbb815bfd9ecdba01b8334552f0a3
tree10895b90641c8527e7329ec1a0962b82e0bfef35
parentbf5f2890ac15b646a1d2cb571e4bbf0e032414ac
Rename User#delete to User#destroy

"delete" is generally used for immediate SQL deletion without running
any callbacks or other ruby code, whereas "destroy" will trigger callbacks.

Although we don't currently use any callbacks, let's rename this method to
align better with the convention.
app/controllers/users_controller.rb
app/models/user.rb
test/controllers/browse_controller_test.rb
test/models/user_test.rb