From 2b4b9f31b99a19cff3fbf895b819daeff88b0fc2 Mon Sep 17 00:00:00 2001 From: Georg G Date: Tue, 5 Jan 2016 21:18:21 +0100 Subject: [PATCH] fuck --- lib/exporter.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/exporter.rb b/lib/exporter.rb index b62f69aa..5f96c1dc 100644 --- a/lib/exporter.rb +++ b/lib/exporter.rb @@ -12,7 +12,6 @@ class Exporter end def export - fail "An export is already in progress." if @user.export_processing @user.export_processing = true @user.save validate: false collect_user_info @@ -128,12 +127,12 @@ class Exporter qobj = {} %i(answer_count author_is_anonymous content created_at id).each do |f| - qobj[f] = q.send f + qobj[f] = question.send f end if opts[:include_answers] qobj[:answers] = [] - qobj.answers.each do |a| + question.answers.each do |a| qobj[:answers] << process_answer(a, include_question: false) end end