Allow to use Mongoid 3.0 or 3.1.