removed pre rails 3.1 if statement. Was blocking the code and not needed