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.

Changeset [26e87361bf8a4b86d9ea1cef2996edc58aca2187] by Mislav Marohnić

Revision 26e87361bf8a4b86d9ea1cef2996edc58aca2187, committed by Mislav Marohnić · September 17th, 2011 @ 05:00 PM

fix total_pages, out_of_bounds? for empty collections

Fixes #169
https://github.com/mislav/will_paginate/commit/26e87361bf8a4b86d9ea...

7 changed files

  • M lib/will_paginate/active_record.rb
  • M lib/will_paginate/collection.rb
  • M lib/will_paginate/data_mapper.rb
  • M lib/will_paginate/sequel.rb
  • M spec/collection_spec.rb
  • M spec/finders/active_record_spec.rb
  • M spec/finders/data_mapper_spec.rb