rails4 fix for config