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