CHanged to rails4 version