Changeset [26e87361bf8a4b86d9ea1cef2996edc58aca2187] 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...

Committed by Mislav Marohnić

  • 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
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 »

Everyone's favorite Ruby library for pagination of practically anything!