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

14 commits

Author SHA1 Message Date
Akira Matsuda
47b9ef394e typos 2015-12-19 06:49:13 +09:00
dB
c806c64717 Added support for Mongoid5. 2015-10-05 08:11:05 -04:00
Yuki Nishijima
0e95118b74 Fixed a 'stack level too deep' bug in mongoid
Fixes #642
2015-01-24 13:03:21 -08:00
KouyaFukuda
be3506923a Fixed a bug that paginates_per does not work with subclasses on mongoid 2014-12-14 12:23:54 +00:00
Yuki Nishijima
37202e4823 Reset @total_count on #clone
Fixes #565
2014-06-23 12:12:02 -07:00
Yuki Nishijima
62d04f2bb1 Use the old hash syntax 2014-03-08 22:46:25 -08:00
Yuki Nishijima
2769f32ec1 Do not override Mongoid::Criteria#page defined by scope
so we don't have to worry about runtime persistence. closes #326
2014-03-08 21:34:51 -08:00
Arthur Neves
03a4518635 Add tests for mongoid 4 beta 1 2014-02-02 14:23:46 -05:00
aptx4869
88c163eb06 Add support for mongoid max_scan option
respect the max_scan option in criteria

cache the total_count in the collection instance
prevent hitting db again in the same instance
2014-01-26 09:21:35 +08:00
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
d0cb1837a1 refactor AR, DM, mongoid, and mongo_mapper specs
extract model definitions for each ORM under spec/fake_app, and load them only if target ORM is loaded
by this mechanism, all ORMs share a model name "User", and the other specs such as helper specs and request specs will run polymorphically
2012-05-23 12:44:13 +09:00
Akira Matsuda
854d04af4b [AR, DM, Mongoid, MongoMapper].each {|orm| run orm specs only if orm is loaded } 2012-05-23 12:38:30 +09:00
Akira Matsuda
53bae068e8 categorize model specs 2012-05-23 12:35:38 +09:00