Commit 8fd2c40f9dc222eb9eab3279ef5dbc043cbea49f

Authored by Dhruv Kapadia
1 parent f6820f8d

Fixing typo

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
app/controllers/questions_controller.rb
@@ -137,8 +137,9 @@ class QuestionsController < InheritedResources::Base @@ -137,8 +137,9 @@ class QuestionsController < InheritedResources::Base
137 csv << headers 137 csv << headers
138 138
139 #ensure capital format for true and false 139 #ensure capital format for true and false
140 - user_sumbmitted = (c.item.creator != @question.creator) ? "TRUE" : "FALSE"  
141 @question.choices.each do |c| 140 @question.choices.each do |c|
  141 + user_submitted = (c.item.creator != @question.creator) ? "TRUE" : "FALSE"
  142 +
142 csv << [ c.id, c.item_id, "'#{c.data.strip}'", c.question_id, user_submitted , c.item.creator_id, 143 csv << [ c.id, c.item_id, "'#{c.data.strip}'", c.question_id, user_submitted , c.item.creator_id,
143 c.wins, c.losses, c.created_at, c.updated_at, c.active, c.score, c.local_identifier, 144 c.wins, c.losses, c.created_at, c.updated_at, c.active, c.score, c.local_identifier,
144 c.prompts_on_the_left(true).size, c.prompts_on_the_right(true).size, c.prompts_count] 145 c.prompts_on_the_left(true).size, c.prompts_on_the_right(true).size, c.prompts_count]