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.

Source | Google | Stack overflow

Edit

git clone [email protected]:openstreetmap/openstreetmap-website.git

cd openstreetmap-website

open app/models/user_block.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-UserBlock-moderator_permissions-for-pr


# Commit to git

git add app/models/user_block.rbgit commit -m "better docs for UserBlock#moderator_permissions"


# Open pull request

gem 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!