mislav committed changeset [218]
Revision 218,
committed by Chris Wanstrath
· May 14th, 2007 @ 08:48 AM
Changed the behavior of `paginate` :select parameter, added `offset` helper method, removed require statements. Details follow:
- :select parameter no longer applies to implicit ActiveRecord::Base#count statements, use :count parameter in `paginate` for that;
- added PaginatedCollection#offset method to return current offset, which is calculated `(current_page - 1) * per_page`. This is useful when you want to generate result numbers in your results;
- removed lib/will_paginate.rb and explicit require statements, let Dependencies handle loading.
6 changed files
-
U
will_paginate/init.rb -
U
will_paginate/lib/will_paginate/finder.rb -
U
will_paginate/lib/will_paginate/paginated_collection.rb -
D
will_paginate/lib/will_paginate.rb -
U
will_paginate/test/finder_test.rb -
U
will_paginate/test/helper.rb