rails4 compability