The pagination module can be included by any active record model. It can read the params in order to find the right page to filter.