Commit 8c614360baae3272608802edff467d449f97dbd5
1 parent
edf20ef2
Exists in
master
check if voter is present
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/juventude_plugin/votes_job.rb
... | ... | @@ -21,7 +21,7 @@ class JuventudePlugin::VotesJob < JuventudePlugin::ReportJob |
21 | 21 | info = [] |
22 | 22 | |
23 | 23 | info.push(vote.voteable_id) |
24 | - info.push(vote.voter.identifier) | |
24 | + info.push(vote.voter.nil? ? '' : vote.voter.identifier) | |
25 | 25 | info.push(vote.created_at.strftime("%d/%m/%y %H:%M")) |
26 | 26 | csv << info |
27 | 27 | end | ... | ... |