openstreetmap-website
https://github.com/openstreetmap/openstreetmap-website
Ruby
The Rails application that powers OpenStreetMap
ActionController::Pagination#find_collection_for_pagination
Returns a collection of items for the given +model+ and +options[conditions]+, ordered by +options[order]+, for the current page in the given +paginator+. Override this method to implement a custom finder.
Edit
git clone [email protected]:openstreetmap/openstreetmap-website.git
cd openstreetmap-website
open lib/classic_pagination/pagination.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-ActionController--Pagination-find_collection_for_pagination-for-pr
# Commit to gitgit add lib/classic_pagination/pagination.rbgit commit -m "better docs for ActionController::Pagination#find_collection_for_pagination"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-ActionController--Pagination-find_collection_for_pagination-for-pr
hub pull-request
# Celebrate!