Compatibility with Mongoid 4.0 alpha2