transition to mongoid 3