chris committed changeset [258]
Revision 258,
committed by Chris Wanstrath
· June 11th, 2007 @ 09:59 PM
- Add in ability to extract :conditions from custom finders,
so paginate_by_salary will run a count with :conditions => { :salary => blah }
rather than running a count with empty conditions, which returns the wrong
number of rows. May address ticket #31.
2 changed files
-
U
will_paginate/lib/will_paginate/finder.rb -
U
will_paginate/test/finder_test.rb