]> projects.mako.cc - selectricity-live/blobdiff - lib/rubyvote/election.rb
Disallow identical candidates to be added to a quickvote. Differently cased identical...
[selectricity-live] / lib / rubyvote / election.rb
index efb8dd8aae1ce56abc9896853a32eaf5c0f562da..ffd31c846e56400e9df945361d5a4c11ebb9df9d 100644 (file)
@@ -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

Benjamin Mako Hill || Want to submit a patch?