fix rails4 deprecation notice