Commit 67fd10da38f267c63ad9fd7e1bf74264be2f3a24
1 parent
b3180861
Exists in
master
and in
1 other branch
only count active choices when disabling catchup
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/question.rb
... | ... | @@ -511,7 +511,7 @@ class Question < ActiveRecord::Base |
511 | 511 | |
512 | 512 | def add_prompt_to_queue |
513 | 513 | # if this question has 1000 or more choices disable catchup |
514 | - if self.uses_catchup? && self.choices.count >= 1000 | |
514 | + if self.uses_catchup? && self.choices.active.count >= 1000 | |
515 | 515 | self.uses_catchup = false |
516 | 516 | self.save |
517 | 517 | end | ... | ... |