openstreetmap-website
https://github.com/openstreetmap/openstreetmap-website
Ruby
The Rails application that powers OpenStreetMap
Relation#fix_placeholders!
if any members are referenced by placeholder IDs (i.e: negative) then this calling this method will fix them using the map from placeholders to IDs +id_map+.
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-fix_placeholders--for-pr
# Commit to gitgit add app/models/relation.rbgit commit -m "better docs for Relation#fix_placeholders!"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Relation-fix_placeholders--for-pr
hub pull-request
# Celebrate!