Adding rails4 support