From fc2bd81d8e5908755ca33fba497adfc4b08cfd65 Mon Sep 17 00:00:00 2001 From: Luke Baker Date: Mon, 2 Dec 2013 13:27:39 -0500 Subject: [PATCH] fix nil check for appearance --- 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 3245814..54eaad8 100644 --- a/app/models/question.rb +++ b/app/models/question.rb @@ -599,7 +599,7 @@ class Question < ActiveRecord::Base left_id = v.prompt.nil? ? "" : v.prompt.left_choice_id right_id = v.prompt.nil? ? "" : v.prompt.right_choice_id - appearance_id = v.appearance.id.nil? ? "NA" : v.appearance.id + appearance_id = v.appearance.nil? ? "NA" : v.appearance.id time_viewed = v.time_viewed.nil? ? "NA": v.time_viewed.to_f / 1000.0 csv << [ v.id, v.voter_id, v.question_id, v.choice_id, v.choice.data.strip, v.loser_choice_id, loser_data, -- libgit2 0.21.2