Fix for activesupport 4.1