Open michalkrause opened 13 years ago
Sounds logical. I will check it and fix it. Thanks!
I fixed this a while back in my fork, here: https://github.com/CodeMonkeySteve/mongo_odm/commit/f4a55fef6522f94feb50024192883fd4e74c7b48
Feel free to cherry-pick it.
It seems to me that
MongoODM::Criteria
delegatescount
method toCollection
instead ofCursor
inmethod_missing
. The following codeshould return number of active users but returns count of documents in the collection instead.