Changeset [05fc8345a28aeb086d927d633436c362ac0d9b7b] by Mislav Marohnić

August 2nd, 2011 @ 10:58 PM

refactor page number checking, add offset validation

Raise WP::InvalidPage exception on offset values larger than SQL's BIGINT

references #115
https://github.com/mislav/will_paginate/commit/05fc8345a28aeb086d92...

Committed by Mislav Marohnić

  • M lib/will_paginate/active_record.rb
  • M lib/will_paginate/array.rb
  • M lib/will_paginate/collection.rb
  • M lib/will_paginate/data_mapper.rb
  • M lib/will_paginate/per_page.rb
  • M spec/collection_spec.rb
  • M spec/finders/active_record_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!