adds support for mongoid v3.x