From 67fd10da38f267c63ad9fd7e1bf74264be2f3a24 Mon Sep 17 00:00:00 2001 From: Luke Baker Date: Thu, 18 Jul 2013 16:26:09 -0400 Subject: [PATCH] only count active choices when disabling catchup --- app/models/question.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/question.rb b/app/models/question.rb index b667a9f..30d3632 100644 --- a/app/models/question.rb +++ b/app/models/question.rb @@ -511,7 +511,7 @@ class Question < ActiveRecord::Base def add_prompt_to_queue # if this question has 1000 or more choices disable catchup - if self.uses_catchup? && self.choices.count >= 1000 + if self.uses_catchup? && self.choices.active.count >= 1000 self.uses_catchup = false self.save end -- libgit2 0.21.2