Correct   @protection_quizzes.close! to @protection_quiz.close!