openstreetmap-website
https://github.com/openstreetmap/openstreetmap-website
Ruby
The Rails application that powers OpenStreetMap
UserBlock#moderator_permissions
validate that only moderators are allowed to change the block. this should be caught and dealt with in the controller, but i've also included it here just in case.
Edit
git clone [email protected]:openstreetmap/openstreetmap-website.git
cd openstreetmap-website
open app/models/user_block.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-UserBlock-moderator_permissions-for-pr
# Commit to gitgit add app/models/user_block.rbgit commit -m "better docs for UserBlock#moderator_permissions"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-UserBlock-moderator_permissions-for-pr
hub pull-request
# Celebrate!