From 46d9daddbc6c2bd4609c9ebae751371931508203 Mon Sep 17 00:00:00 2001 From: Luke Baker Date: Mon, 10 Jan 2011 15:38:59 -0500 Subject: [PATCH] make orphaned appearances valid --- 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 76ce6c5..fbb5834 100644 --- a/app/models/question.rb +++ b/app/models/question.rb @@ -579,7 +579,7 @@ class Question < ActiveRecord::Base else # If no skip and no vote, this is an orphaned appearance prompt = a.prompt - csv << [ "Orphaned Appearance", a.id, a.voter_id, a.question_id, a.prompt.left_choice.id, a.prompt.left_choice.data.strip, a.prompt.right_choice.id, a.prompt.right_choice.data.strip, a.prompt_id, 'N/A', 'N/A', a.created_at, a.updated_at, 'N/A', '', a.voter.identifier, 'N/A'] + csv << [ "Orphaned Appearance", a.id, a.voter_id, a.question_id, a.prompt.left_choice.id, a.prompt.left_choice.data.strip, a.prompt.right_choice.id, a.prompt.right_choice.data.strip, a.prompt_id, 'N/A', 'N/A', a.created_at, a.updated_at, 'N/A', '', a.voter.identifier, 'TRUE'] end end end -- libgit2 0.21.2