rails4 deprecation warnings