Compatibility with Mongoid 2