Replace deprecated ruby call.