state_machine
https://github.com/pluginaweek/state_machine
Ruby
Adds support for creating state machines for attributes on any Ruby class
Mattermost::Team#destroy
The deletion is done async, so the response is fast. On the mattermost side, this triggers an soft deletion first, after which the actuall data is removed
Edit
git clone [email protected]:pluginaweek/state_machine.git
cd state_machine
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Mattermost--Team-destroy-for-pr
# Commit to gitgit add git commit -m "better docs for Mattermost::Team#destroy"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Mattermost--Team-destroy-for-pr
hub pull-request
# Celebrate!