X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/924aa1ff433ac4ccd2db5851e91038088be00a09..e682e1ecce33417f8410e71bd58d385c47e37c5b:/lib/rubyvote/election.rb?ds=sidebyside diff --git a/lib/rubyvote/election.rb b/lib/rubyvote/election.rb index efb8dd8..ffd31c8 100644 --- a/lib/rubyvote/election.rb +++ b/lib/rubyvote/election.rb @@ -152,7 +152,7 @@ class PluralityResult < ElectionResult b[1] <=> a[1] end.collect {|a| a[0]} - @points = self.election.votes + @points = @election.votes # winners are anyone who has the same number of votes as the # first person