Previous implementation was not really compatible with active record models. It fixes it with scope instead of methods.
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.