1
0
Fork 0
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:
krzysztofbialek 2013-04-26 09:41:15 +02:00
parent b7b0f8fd1d
commit 9fc8ca3172

View file

@ -67,10 +67,10 @@ Then bundle:
User.count # => 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
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