Hide rails 2 deprecation warnings