projects
/
selectricity-live
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix broken Plurality vote by removing a type check in RubyVote. TODO: Figure out...
[selectricity-live]
/
lib
/
rubyvote
/
election.rb
diff --git
a/lib/rubyvote/election.rb
b/lib/rubyvote/election.rb
index 75614e6b6d294995fb53cb7de45b5daf35884de2..66e4c2a4b410b83a2af50d12172e64c644cc531a 100644
(file)
--- a/
lib/rubyvote/election.rb
+++ b/
lib/rubyvote/election.rb
@@
-75,7
+75,7
@@
class PluralityVote < ElectionVote
protected
def verify_vote(vote=nil)
-
vote.instance_of?( String
)
+
not vote.instance_of?( Array
)
end
def tally_vote(candidate)
Benjamin Mako Hill
||
Want to submit a patch?