extract mongoid ancestry from gem