diff --git a/app/models/poll/stats.rb b/app/models/poll/stats.rb index ea075e6c9..d7c9826c5 100644 --- a/app/models/poll/stats.rb +++ b/app/models/poll/stats.rb @@ -92,11 +92,11 @@ class Poll::Stats private def participant_ids - voters.pluck(:user_id) + voters end def voters - @voters ||= poll.voters + @voters ||= poll.voters.select(:user_id) end def recounts