1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00
Commit graph

29 commits

Author SHA1 Message Date
d-otis
0ffc784197 expose version number automatically instead of explicitly requiring it 2022-03-03 19:51:14 +09:00
Akira Matsuda
acbcbc8beb Format 2018-11-11 13:04:43 +09:00
Akira Matsuda
086bedcab3 ❄️ 2016-10-12 10:03:37 +09:00
Akira Matsuda
bb0226c075 Move core code to kaminari-core gem 2016-10-04 21:59:34 +09:00
Akira Matsuda
3b63c81e74 Explicitly require Active Record support from the main gem 2016-10-04 10:39:12 +09:00
Akira Matsuda
f34d4c2f16 Explicitly require Action View support from the main gem 2016-10-04 04:22:26 +09:00
Akira Matsuda
a9225927c4 Both Sinatra and Grape are supported through respective kaminari-* adapter gems 2016-06-23 16:40:55 +09:00
Akira Matsuda
b61d2fc1db require AV extension on :action_view on_load 2016-06-21 20:56:28 +09:00
Akira Matsuda
a09451f9e8 Should better check ::Rails::Railtie here as well 2016-06-07 07:49:11 +09:00
Akira Matsuda
a68b5463de The Rails module could be defined some other gem than rails
kaminari depends on actionpack that in turn depends on rails-html-sanitizer the line https://github.com/amatsuda/kaminari/blob/master/lib/kaminari.rb#L36
returns true because rails-html-sanitizer defines the class Rails::Html::Sanitizer: https://github.com/rails/rails-html-sanitizer/blob/master/lib/rails-html-sanitizer.rb
see: https://github.com/amatsuda/kaminari/issues/796#issue-158648760

closes #796
2016-06-07 07:39:42 +09:00
Yuki Nishijima
af769b6a3a Raise ZeroPerPageOperation when total_pages/current_page is called after per(0)
closes #296, closes #585
2014-08-24 17:36:47 -07:00
Akira Matsuda
6cbd2d5645 Revert "An Engine can include app/helpers, so let's move the helpers there"
This reverts commit 2ed8adfe37.

reason: Because mounted engines on the app doesn't search the main_app's helpers, then throws "undefined method `paginate'" in the views
2013-11-10 02:58:22 +09:00
Akira Matsuda
2ed8adfe37 An Engine can include app/helpers, so let's move the helpers there
however, leaving the original module as is for now, for Sinatra compatibility...
2013-07-19 11:55:33 +09:00
Hrvoje Šimić
c9139677ae better warning message 2012-09-22 22:33:40 +03:00
Akira Matsuda
3d9ecb4dd1 stop abusing bang method 2012-05-23 12:54:54 +09:00
Akira Matsuda
c3223aaacd simplify load process 2012-05-23 12:54:54 +09:00
Łukasz Śliwa
c5659eb03f Defects grape gem. 2012-03-13 23:29:51 +01:00
Łukasz Śliwa
be46fb7648 Now kaminari supports grape gem. 2012-03-13 22:58:55 +01:00
Akira Matsuda
56df995be8 formats 2011-12-17 16:39:10 +09:00
Sergey Parizhskiy
9d5c575d11 helper method for detect framework 2011-12-17 16:39:10 +09:00
Sergey Parizhskiy
83f8395433 there is no need to slash a single qoute in double qoutes 2011-12-17 16:39:10 +09:00
Uchio Kondo
507617cb58 fix load order when using with sinatra 2011-12-11 13:07:08 +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
Akira Matsuda
af3e172ae1 cut off full path requires
https://twitter.com/#!/joshkalderimis/status/78481204705361920
2011-06-09 00:37:26 +09:00
Akira Matsuda
74736637c8 from jeweler to bundler
because combination of gemspec method and jeweler task caused circular dependency in the generated metadata
2011-04-21 01:23:34 +09:00
Akira Matsuda
749c04dac6 a constant for Kaminari version 2011-04-16 21:33:45 +09:00
Akira Matsuda
7e38db7542 enginize 2011-02-05 23:45:49 +09:00
Akira Matsuda
bfa1449f16 implement AR scopes 2011-02-05 23:45:49 +09:00
Akira Matsuda
4db3397b4d Initial commit to kaminari. 2011-02-05 22:32:10 +09:00