Add rails4 support #6