grape
https://github.com/intridea/grape
Ruby
An opinionated framework for creating REST-like APIs in Ruby.
Users::DestroyService#execute
Synchronously destroys +user+ The operation will fail if the user is the sole owner of any groups. To force the groups to be destroyed, pass `delete_solo_owned_groups: true` in +options+. The user's contributions will be migrated to a global ghost user. To force the contributions to be destroyed, pass `hard_delete: true` in +options+. `hard_delete: true` implies `delete_solo_owned_groups: true`. To perform a hard deletion without destroying solo-owned groups, pass `delete_solo_owned_groups: false, hard_delete: true` in +options+.
Edit
git clone [email protected]:intridea/grape.git
cd grape
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Users--DestroyService-execute-for-pr
# Commit to gitgit add git commit -m "better docs for Users::DestroyService#execute"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Users--DestroyService-execute-for-pr
hub pull-request
# Celebrate!