mongo_odm icon indicating copy to clipboard operation
mongo_odm copied to clipboard

Add convenience/compatibility methods

Open CodeMonkeySteve opened this issue 14 years ago • 3 comments
trafficstars

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.

CodeMonkeySteve avatar Feb 16 '11 19:02 CodeMonkeySteve

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.

carlosparamio avatar Feb 20 '11 10:02 carlosparamio

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?

carlosparamio avatar Feb 20 '11 10:02 carlosparamio

I so no reason not to include it. Who can have too many convenience functions?

CodeMonkeySteve avatar Feb 20 '11 17:02 CodeMonkeySteve