Akira Matsuda
|
8902c44b36
|
Reduce Hash creation
|
2013-11-24 01:04:11 +09:00 |
|
Akira Matsuda
|
a5ebc7cc89
|
Tweak @options before use
|
2013-11-24 00:39:31 +09:00 |
|
Yuki Nishijima
|
b84a4f99e7
|
Make num_pages available
It returns the same value as total_pages and you can still use num_pages anywhere in the view.
closes #287, closes #284
|
2013-07-02 23:00:00 +09:00 |
|
Akira Matsuda
|
7d20935411
|
Ask if defined? against the instance. And don't open it if doing nothing
|
2013-05-13 23:54:10 +09:00 |
|
Benjamin Fleischer
|
10e12f8c72
|
[#164] Make to_s in paginator threadsafe
Make explicit what the paginator to_s is doing
In a high-load environment, may not
repress logging consistently as desired
|
2013-03-29 11:44:05 -05:00 |
|
Akira Matsuda
|
82a38e07db
|
"warning: instance variable @last not initialized"
|
2012-06-20 13:37:45 +09:00 |
|
Akira Matsuda
|
e59a32e802
|
don't overwrite options[:total_pages]
|
2012-05-30 00:36:01 +09:00 |
|
Akira Matsuda
|
3532c12e8e
|
oops
|
2012-05-29 22:16:26 +09:00 |
|
Akira Matsuda
|
8ca1a41740
|
keep compatibility with previous versions for now
|
2012-05-25 15:32:49 +09:00 |
|
Akira Matsuda
|
e79935c2d5
|
num_pages => total_pages
|
2012-05-25 15:31:53 +09:00 |
|
Akira Matsuda
|
0b6564df27
|
avoid "`&' interpreted as argument prefix" warning
|
2012-02-14 19:25:24 +09:00 |
|
Akira Matsuda
|
0ffe09de68
|
let the paginator loop through only "relevant" pages by default
|
2011-12-11 23:12:55 +09:00 |
|
Akira Matsuda
|
a54c3ce466
|
Merge branch 'master' of https://github.com/cbeer/kaminari into cbeer-master
|
2011-12-11 22:11:48 +09:00 |
|
Uchio Kondo
|
1da155b15b
|
make it to work well with Sinatra/Padrino, thanks to #161 & #174
|
2011-11-21 20:15:06 +09:00 |
|
Chris Beer
|
ab8a45047e
|
address issue #137 by adding #each_relevant_page, an iterator that only visits pages in the inner or outer windows, and Kaminari::Helpers::Paginator::Windows (should be renamed) that does the heavy lifting
|
2011-07-27 10:35:38 -04:00 |
|
Akira Matsuda
|
af3e172ae1
|
cut off full path requires
https://twitter.com/#!/joshkalderimis/status/78481204705361920
|
2011-06-09 00:37:26 +09:00 |
|
Akira Matsuda
|
cc914952ea
|
use ActionView::Context API
though this API actually does nothing ATM
|
2011-05-04 00:16:40 +09:00 |
|
Akira Matsuda
|
2dd06266db
|
fixes #97 _paginate.html.erb isn't rendered with custom theme
|
2011-04-25 16:20:07 +09:00 |
|
Akira Matsuda
|
36d07200c9
|
refs #91 avoid "super called outside of method" error on particular versions of Ruby 1.8.7
actually this seems like a Ruby's bug, but anyway I should better not use super inside a block
http://www.datatravels.com/technotes/2010/02/24/ruby-187-patchlevel-inconsistency-super-called-out/
http://redmine.ruby-lang.org/issues/show/2537
|
2011-04-25 15:53:43 +09:00 |
|
Akira Matsuda
|
4c73ad56db
|
refs #41 helper options are configurable now!
configurable values are: window, outer_window, left, right
|
2011-04-21 16:45:08 +09:00 |
|
Akira Matsuda
|
f23655cc24
|
each_page returns Enumerator unless block_given
|
2011-04-18 01:40:38 +09:00 |
|
Akira Matsuda
|
20a9a8cac5
|
rename
|
2011-02-28 01:10:15 +09:00 |
|