mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
add info about limit and per to readme
This commit is contained in:
parent
b7b0f8fd1d
commit
9fc8ca3172
1 changed files with 2 additions and 2 deletions
|
@ -67,10 +67,10 @@ Then bundle:
|
||||||
User.count # => 1000
|
User.count # => 1000
|
||||||
User.page(1).per(nil).size # => 1000
|
User.page(1).per(nil).size # => 1000
|
||||||
|
|
||||||
Remember that +per+ utilizes +limit+ and so it will override any +limit+ that was set previously
|
Keep in mind that +per+ utilizes internally +limit+ and so it will override any +limit+ that was set previously
|
||||||
User.count # => 1000
|
User.count # => 1000
|
||||||
a = User.limit(5).count # => 5
|
a = User.limit(5).count # => 5
|
||||||
b = a.page(1).per(20).count # => 20 not 5
|
b = a.page(1).per(20).size # => 20
|
||||||
|
|
||||||
* the +padding+ scope
|
* the +padding+ scope
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue