Commit 8c614360baae3272608802edff467d449f97dbd5

Authored by Leandro Santos
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,7 +21,7 @@ class JuventudePlugin::VotesJob < JuventudePlugin::ReportJob
21 info = [] 21 info = []
22 22
23 info.push(vote.voteable_id) 23 info.push(vote.voteable_id)
24 - info.push(vote.voter.identifier) 24 + info.push(vote.voter.nil? ? '' : vote.voter.identifier)
25 info.push(vote.created_at.strftime("%d/%m/%y %H:%M")) 25 info.push(vote.created_at.strftime("%d/%m/%y %H:%M"))
26 csv << info 26 csv << info
27 end 27 end