openstreetmap-website
https://github.com/openstreetmap/openstreetmap-website
Ruby
The Rails application that powers OpenStreetMap
ChangesetController#conditions_open
return changesets which are open (haven't been closed yet) we do this by seeing if the 'closed at' time is in the future. Also if we've hit the maximum number of changes then it counts as no longer open. if parameter 'open' is nill then open and closed changesets are returned
Edit
git clone [email protected]:openstreetmap/openstreetmap-website.git
cd openstreetmap-website
open app/controllers/changeset_controller.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-ChangesetController-conditions_open-for-pr
# Commit to gitgit add app/controllers/changeset_controller.rbgit commit -m "better docs for ChangesetController#conditions_open"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-ChangesetController-conditions_open-for-pr
hub pull-request
# Celebrate!