remove rails4 deprecation