fixing support for mongoid 4