app/models/poll.rb in e9_polls-1.0.2 vs app/models/poll.rb in e9_polls-1.0.3

- old
+ new

@@ -32,10 +32,10 @@ def vote=(id) poll_answers.find_by_id(id).try(:vote!) end def votes - poll_answers.sum(:votes) + poll_answers.sum(:votes).to_i end def percentage_for(poll_answer) votes.zero? ? 0 : (poll_answer.votes.to_f / votes * 100).round(2) end