]> projects.mako.cc - selectricity-live/blobdiff - lib/rubyvote/election.rb
Modified QuickVote table to work by object type and not by the weird
[selectricity-live] / lib / rubyvote / election.rb
old mode 100644 (file)
new mode 100755 (executable)
index 7fd8396..fc61840
@@ -70,7 +70,7 @@ class PluralityVote < ElectionVote
   
   protected
   def verify_vote(vote=nil)
-    vote.instance_of?( String )
+    vote ? true : false
   end
 
   def tally_vote(candidate)

Benjamin Mako Hill || Want to submit a patch?