From bed4d517c57c63b66b032ad5dbd52d9d575a982f Mon Sep 17 00:00:00 2001 From: Luke Baker Date: Tue, 2 Nov 2010 15:47:08 -0400 Subject: [PATCH] update active column in ideas CSV to be CAPS --- app/models/question.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/question.rb b/app/models/question.rb index e6b9df6..0120a46 100644 --- a/app/models/question.rb +++ b/app/models/question.rb @@ -547,6 +547,7 @@ class Question < ActiveRecord::Base when 'ideas' self.choices.each do |c| user_submitted = c.user_created ? "TRUE" : "FALSE" + active = c.active ? "TRUE" : "FALSE" left_prompts_ids = c.prompts_on_the_left.ids_only right_prompts_ids = c.prompts_on_the_right.ids_only @@ -555,7 +556,7 @@ class Question < ActiveRecord::Base num_skips = self.skips.count(:conditions => {:prompt_id => left_prompts_ids + right_prompts_ids}) - csv << [c.question_id, c.id, "'#{c.data.strip}'", c.wins, c.losses, num_skips, c.score, user_submitted , c.creator_id, c.created_at, c.updated_at, c.active, left_appearances, right_appearances] + csv << [c.question_id, c.id, "'#{c.data.strip}'", c.wins, c.losses, num_skips, c.score, user_submitted , c.creator_id, c.created_at, c.updated_at, active, left_appearances, right_appearances] end when 'non_votes' -- libgit2 0.21.2