From 8c614360baae3272608802edff467d449f97dbd5 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Thu, 29 Oct 2015 13:12:59 -0300 Subject: [PATCH] check if voter is present --- lib/juventude_plugin/votes_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/juventude_plugin/votes_job.rb b/lib/juventude_plugin/votes_job.rb index 7bca8da..94d37b6 100644 --- a/lib/juventude_plugin/votes_job.rb +++ b/lib/juventude_plugin/votes_job.rb @@ -21,7 +21,7 @@ class JuventudePlugin::VotesJob < JuventudePlugin::ReportJob info = [] info.push(vote.voteable_id) - info.push(vote.voter.identifier) + info.push(vote.voter.nil? ? '' : vote.voter.identifier) info.push(vote.created_at.strftime("%d/%m/%y %H:%M")) csv << info end -- libgit2 0.21.2