avoid rails deprecation warning