openstreetmap-website
https://github.com/openstreetmap/openstreetmap-website
Ruby
The Rails application that powers OpenStreetMap
DiaryEntryController#require_administrator
require that the user is a administrator, or fill out a helpful error message and return them to the user page.
Edit
git clone [email protected]:openstreetmap/openstreetmap-website.git
cd openstreetmap-website
open app/controllers/diary_entry_controller.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-DiaryEntryController-require_administrator-for-pr
# Commit to gitgit add app/controllers/diary_entry_controller.rbgit commit -m "better docs for DiaryEntryController#require_administrator"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-DiaryEntryController-require_administrator-for-pr
hub pull-request
# Celebrate!