From b8678be0b14600ab7597c01ecb944fa19bf9b24d Mon Sep 17 00:00:00 2001 From: Dasol Yoon Date: Fri, 18 Nov 2016 05:39:53 +0000 Subject: [PATCH] fixed nill disc --- app/controllers/file_controller.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/controllers/file_controller.rb b/app/controllers/file_controller.rb index 17432761..c87c0427 100644 --- a/app/controllers/file_controller.rb +++ b/app/controllers/file_controller.rb @@ -15,10 +15,7 @@ def download_approved_teams Team.approved_teams.each do |t| discussion = Discussion.find_by_id(t.discussion_id) - if(discussion.nil?) - byebug - end - + t.users.each do |u| rows << [t.id, discussion.number, u.sid, u.name]