Yuki Nishijima
|
2ac0c19a64
|
Add next_page and prev_page methods
closes #237
|
2013-06-17 17:50:11 +09:00 |
|
Akira Matsuda
|
e79935c2d5
|
num_pages => total_pages
|
2012-05-25 15:31:53 +09:00 |
|
Akira Matsuda
|
f22df5816b
|
it is not required to require by full path. Let's trust the LOAD_PATH
|
2011-12-11 01:15:18 +09:00 |
|
Akira Matsuda
|
f41de10abb
|
PaginatableArray can be instantiated without an argument
|
2011-09-21 14:45:00 +09:00 |
|
Akira Matsuda
|
6629f5bfe0
|
be paginatable if both limit and offset are given when initializing
don't have to call offset() to be paginatable
|
2011-08-26 08:23:51 +09:00 |
|
Akira Matsuda
|
b5e16c0a94
|
keep the whole Array if total_count is given
|
2011-08-26 08:22:54 +09:00 |
|
Akira Matsuda
|
6c0d1b66c1
|
specs for setting PaginatableArray#total_count
|
2011-08-25 12:13:46 +09:00 |
|
Akira Matsuda
|
7532ecc4fc
|
add current_page to PaginatableArray
|
2011-08-17 21:17:00 +09:00 |
|
Akira Matsuda
|
e04f65aeaa
|
refs #47, #68, #74 generic pagination support for Array object
this enables you to paginate through any Arrayish object in this way:
Kaminari.paginate_array(my_array_object).page(params[:page]).per(10)
|
2011-04-22 11:43:08 +09:00 |
|