mislav/will_paginate — Issue #194: previous_page and next_page methods disappeared
Author: pjungwir
Created: 2011-10-29 16:46:26+00:00
State: open

will_paginate 3.0.pre2 provided previous_page and next_page methods on the object returned from .paginate(:page => params[:page]). These were useful to check if I wanted to alter other parts of the view when a next/prev page was available. Now in 3.0.0 they are gone. It looks like this is a result of handing back the ActiveRecord::Relation rather than a WillPaginate::Collection. Can I get these methods back?