ruby switchover