Mongoid 2.x support.