per(0) doesn't return an empty array #296

Closed
aflag opened this Issue Oct 4, 2012 · 3 comments

Comments

Projects
None yet
3 participants

aflag commented Oct 4, 2012

I expedted the following code to return an empty list

Kaminari.paginate_array((1..30).to_a).page(0).per(0)

it returned

[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25]

instead.

gs commented Nov 3, 2012

fixed in amatsuda#305

Owner

yuki24 commented Jul 2, 2013

closing in favor of #305.

yuki24 closed this Jul 2, 2013

Owner

yuki24 commented Aug 19, 2014

after having discussion with @sfcgeorge on #305, I've decided to re-open this issue. #585 is also related to this.

yuki24 reopened this Aug 19, 2014

@yuki24 yuki24 modified the milestone: 0.15.0, 1.0.0 Aug 19, 2014

yuki24 closed this in af769b6 Aug 25, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment