diff --git a/app/models/question.rb b/app/models/question.rb index 902e5eb..9e6893b 100644 --- a/app/models/question.rb +++ b/app/models/question.rb @@ -123,8 +123,8 @@ class Question < ActiveRecord::Base # This will not run once all prompts have been generated, # but it prevents us from having to pregenerate all possible prompts if weights.size < choices.size ** 2 - choices.size - choices.each do |l| - choices.each do |r| + choices.active.each do |l| + choices.active.each do |r| if l.id == r.id next end -- libgit2 0.21.2