Modified QuickVote table to work by object type and not by the weird
[selectricity-live] / app / models / election.rb
index ebd623a6b186d4006d54c2f144557d0003a169fa..cf7bba58a2974f409a2828226d4dd43dc2f023ac 100755 (executable)
@@ -57,7 +57,7 @@ class Election < ActiveRecord::Base
   end
   
   def quickvote?
-    quickvote.to_i == 1
+    type == 'QuickVote'
   end
 
   def active?

Benjamin Mako Hill || Want to submit a patch?