Added compatibility for MongoMapper