one-click-orgs
https://github.com/oneclickorgs/one-click-orgs
Ruby
Create legal organisations with just one click
AssociationsController#ensure_no_overwrite_in_single_organisation_mode
In single organisation mode, you need a guard to stop being able to overwrite information about an organisation once it's first been created.
Edit
git clone [email protected]:oneclickorgs/one-click-orgs.git
cd one-click-orgs
open app/controllers/associations_controller.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-AssociationsController-ensure_no_overwrite_in_single_organisation_mode-for-pr
# Commit to gitgit add app/controllers/associations_controller.rbgit commit -m "better docs for AssociationsController#ensure_no_overwrite_in_single_organisation_mode"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-AssociationsController-ensure_no_overwrite_in_single_organisation_mode-for-pr
hub pull-request
# Celebrate!