Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

mislav committed changeset [388]

Revision 388, committed by Chris Wanstrath · September 26th, 2007 @ 06:08 PM

Will Paginate lazy counting! Counting is done after the SELECT, but 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]

http://plugins.require.errtheblo...

10 changed files

  • U will_paginate/lib/will_paginate/collection.rb
  • U will_paginate/lib/will_paginate/core_ext.rb
  • U will_paginate/lib/will_paginate/finder.rb
  • U will_paginate/test/finder_test.rb
  • D will_paginate/test/fixtures/companies.yml
  • D will_paginate/test/fixtures/company.rb
  • U will_paginate/test/fixtures/schema.sql
  • U will_paginate/test/fixtures/topic.rb
  • U will_paginate/test/helper.rb
  • U will_paginate/test/pagination_test.rb