one-click-orgs

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

Ruby

Create legal organisations with just one click

Organisation.find_by_host

Given a full hostname, e.g. "myorganisation.oneclickorgs.com",
and assuming the installation's base domain is "oneclickorgs.com",
returns the organisation corresponding to the subdomain
"myorganisation".

Source | Google | Stack overflow

Edit

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

cd one-click-orgs

open app/models/organisation.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Organisation-find_by_host-for-pr


# Commit to git

git add app/models/organisation.rbgit commit -m "better docs for Organisation.find_by_host"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Organisation-find_by_host-for-pr

hub pull-request


# Celebrate!