Commit fc2bd81d8e5908755ca33fba497adfc4b08cfd65

Authored by Luke Baker
1 parent 301587a4

fix nil check for appearance

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/question.rb
... ... @@ -599,7 +599,7 @@ class Question < ActiveRecord::Base
599 599 left_id = v.prompt.nil? ? "" : v.prompt.left_choice_id
600 600 right_id = v.prompt.nil? ? "" : v.prompt.right_choice_id
601 601  
602   - appearance_id = v.appearance.id.nil? ? "NA" : v.appearance.id
  602 + appearance_id = v.appearance.nil? ? "NA" : v.appearance.id
603 603 time_viewed = v.time_viewed.nil? ? "NA": v.time_viewed.to_f / 1000.0
604 604  
605 605 csv << [ v.id, v.voter_id, v.question_id, v.choice_id, v.choice.data.strip, v.loser_choice_id, loser_data,
... ...