fix another deprecation for rails 4