allow for rails4 compat