fix for whenever rails 4