make it rails4 compatible