amatsuda/kaminari — Issue #170:  Why is Kaminari displaying 4 / all records when there is a `limit` being applied?
Author: krzkrzkrz
Created: 2011-10-13 08:06:11+00:00
State: open

In Rails console, I do:

Video.count

Returns 4

Video.limit(2)

Returns 2

v = Video.limit(2)
vv = v.page(1).per(20).count

Returns 4

Why is Kaminari displaying 4 / all records when there is a `limit` being applied? Shouldn't it return 2 instead?