openstreetmap-website
https://github.com/openstreetmap/openstreetmap-website
Ruby
The Rails application that powers OpenStreetMap
Relation#update_changeset_element
updates the changeset bounding box to contain the bounding box of the element with given +type+ and +id+. this only works with nodes and ways at the moment, as they're the only elements to respond to the :bbox call.
Edit
git clone [email protected]:openstreetmap/openstreetmap-website.git
cd openstreetmap-website
open app/models/relation.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Relation-update_changeset_element-for-pr
# Commit to gitgit add app/models/relation.rbgit commit -m "better docs for Relation#update_changeset_element"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Relation-update_changeset_element-for-pr
hub pull-request
# Celebrate!