mongo_odm
mongo_odm copied to clipboard
Add convenience/compatibility methods
Implements various convenience functions and some of the ActiveRecord API. Should be fully backward compatible, except for the return value on #save.
Note: this includes several un-merged commits from the master branch, you might want to pull master first.
Nice. Could you enclose those finders on its custom module? We could name it "MongoODM::ActiveRecordFinders" or so.
BTW, I've pushed a new version with support for BSON::DBRef objects, and referencing / dereferencing of those objects even inside arrays and hashes.
Ok, now I see that those finders are under a "Finders" module. I'm wondering if that module should be optional or not. What do you think?
I so no reason not to include it. Who can have too many convenience functions?