In general, try to post more information when asking a question - what gems you are using, a stack track (instead of "is not working") etc.
In this case, the class you've referenced appears to be part of the rubycas-client gem. They have an outstanding issue for Rails 4 compatibility:
I'd recommend trying out that patch to see if it fixes your problem.
--Matt Jones