removed deprecation warnings and rails 3isms