Commit 4efdb2078e9d16b3ed969c54ce7058ade2740278

Authored by Dhruv Kapadia
1 parent 91aaa8ce

Choice creation vs appearance graph only examines active ideas

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/controllers/questions_controller.rb
... ... @@ -254,7 +254,7 @@ class QuestionsController < InheritedResources::Base
254 254 elsif object_type == 'appearances_by_creation_date'
255 255  
256 256 hash = Hash.new()
257   - @question.choices.find(:all, :order => :created_at).each do |c|
  257 + @question.choices.active.find(:all, :order => :created_at).each do |c|
258 258 relevant_prompts = c.prompts_on_the_left.find(:all, :select => 'id') + c.prompts_on_the_right.find(:all, :select => 'id')
259 259  
260 260 appearances = Appearance.count(:conditions => {:prompt_id => relevant_prompts, :question_id => @question.id})
... ...