It handles validation of numbers and calculating the offset value.
Raise WP::InvalidPage exception on offset values larger than SQL's BIGINT references #115
…ory damage and lots of subsequent gc runs.
…tency. If you implemented this interface, change your implementation accordingly.
Changed that count is skipped when 0 records are returned on page 1.
…nables loading of WillPaginate::Collection in 3rd-party code without having to load all of WillPaginate
…only previous/next remain) or the DIV container (if the user is rolling out his own markup). [#22 state:resolved] git-svn-id: svn://errtheblog.com/svn/plugins/will_paginate@426 1eaa51fe-a21a-0410-9c2e-ae7a00a434c4
…te::InvalidPage error is raised if you pass an invalid string, zero or negative number as :page parameter. git-svn-id: svn://errtheblog.com/svn/plugins/will_paginate@421 1eaa51fe-a21a-0410-9c2e-ae7a00a434c4
… [Elijah Miller] [#131 status:resolved] git-svn-id: svn://errtheblog.com/svn/plugins/will_paginate@409 1eaa51fe-a21a-0410-9c2e-ae7a00a434c4
git-svn-id: svn://errtheblog.com/svn/plugins/will_paginate@404 1eaa51fe-a21a-0410-9c2e-ae7a00a434c4
…helper method on WP::Collection called 'out_of_bounds?' that is true when we're trying to fetch a page that doesn't exist. [#125 status:resolved] git-svn-id: svn://errtheblog.com/svn/plugins/will_paginate@393 1eaa51fe-a21a-0410-9c2e-ae7a00a434c4
… skipped entirely if Finder figures out that this is the last page. We are talking about saving us trips to the db here. Thanks, Elijah Miller. [#92 state:resolved] git-svn-id: svn://errtheblog.com/svn/plugins/will_paginate@388 1eaa51fe-a21a-0410-9c2e-ae7a00a434c4
* Don't be a smartass and pretend knowing all about the AR API. Simply allow all options [#37 state:resolved] [Bence Golda] * Added tests for some edge cases * Improve the documentation, you can now generate it with rake rdoc * Cleanup test helper stuff * add test/console executable, it loads irb, will_paginate, and all the fixtures git-svn-id: svn://errtheblog.com/svn/plugins/will_paginate@261 1eaa51fe-a21a-0410-9c2e-ae7a00a434c4
…n gets previous/next_page methods which return integer or nil. Small refactoring of will_paginate render code. git-svn-id: svn://errtheblog.com/svn/plugins/will_paginate@252 1eaa51fe-a21a-0410-9c2e-ae7a00a434c4
…llection and no longer only a proxy, but a real Array subclass. That cleans things up quite a bit! I'm clearing the way for more view helpers. Also, SEPARATOR constant is added to act as a default separator for page numbers. Initially it is a single space, which kinda reverts  (sorry PJ!). git-svn-id: svn://errtheblog.com/svn/plugins/will_paginate@235 1eaa51fe-a21a-0410-9c2e-ae7a00a434c4