Support for rails4