mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
873dcf9a90
This commit does two things: * Adds `.offset(0)` when limit is set to `nil` for consistency * Force-returns `1` for `#total_pages` and `#current_page` when using `per(nil)`. This avoid "Cannot coerce nil into Fixnum" errors, and will also prevent "ZeroDivisionError" if `limit_value` is ever typecast using `to_i`. |
||
---|---|---|
.. | ||
config | ||
fake_app | ||
helpers | ||
models | ||
requests | ||
support | ||
fake_gem.rb | ||
spec_helper.rb | ||
spec_helper_for_sinatra.rb |