mislav committed changeset [218]

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.

http://require.errtheblog.com/pl...

Committed by Chris Wanstrath

  • 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
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins