Extracted paginate_per_page helper for crudify from complex logic.
Merge pull request #2110 from refinery/paginate_per_page

Extracted paginate_per_page helper for crudify from complex logic.