openstreetmap-website
https://github.com/openstreetmap/openstreetmap-website
Ruby
The Rails application that powers OpenStreetMap
UserRolesController#not_in_role
checks that the user doesn't already have this role
Edit
git clone [email protected]:openstreetmap/openstreetmap-website.git
cd openstreetmap-website
open app/controllers/user_roles_controller.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-UserRolesController-not_in_role-for-pr
# Commit to gitgit add app/controllers/user_roles_controller.rbgit commit -m "better docs for UserRolesController#not_in_role"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-UserRolesController-not_in_role-for-pr
hub pull-request
# Celebrate!