Minimal upgrade to rails4