Fix for activesupport 4.2.0