]> projects.mako.cc - selectricity/blobdiff - lib/rubyvote/election.rb
Fix crasher when nil is passed to ident_to_quickvote
[selectricity] / 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?