Added some code to detect presence of Mongoid::Criteria and extract selected recordset size from it. Provides rudimentary support for Mongoid. Needs more work for complete support (finding filtered subcount can be tricky because of how Mongoid handles nested document relationships) but I'll keep working and offer commits as I make progress.
Thanks for the work in putting the gem together ... working very nicely for me.
Added some code to detect presence of Mongoid::Criteria and extract selected recordset size from it. Provides rudimentary support for Mongoid. Needs more work for complete support (finding filtered subcount can be tricky because of how Mongoid handles nested document relationships) but I'll keep working and offer commits as I make progress.
Thanks for the work in putting the gem together ... working very nicely for me.
Best,
-Eric-