another rails 4 compatibility fix

I checked places where underscore and demodulize methods are called.