make rails4 compatible