Support for Mongoid 4