Support mongoid-beta2