support mongoid aswell