patch to use rails4