one-click-orgs

https://github.com/oneclickorgs/one-click-orgs

Ruby

Create legal organisations with just one click

ApplicationController#current_organisation

Returns the organisation corresponding to the subdomain that the current
request has been made on (or just returns the organisation if the app
is running in single organisation mode).

Source | Google | Stack overflow

Edit

git clone [email protected]:oneclickorgs/one-click-orgs.git

cd one-click-orgs

open app/controllers/application_controller.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ApplicationController-current_organisation-for-pr


# Commit to git

git add app/controllers/application_controller.rbgit commit -m "better docs for ApplicationController#current_organisation"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-ApplicationController-current_organisation-for-pr

hub pull-request


# Celebrate!