Added support for Mongoid 4.