]> projects.mako.cc - selectricity-live/blobdiff - app/models/election.rb
* Tighter validation, closed a number of crashes due to invalid data
[selectricity-live] / app / models / election.rb
old mode 100755 (executable)
new mode 100644 (file)
index ebd623a..cf7bba5
@@ -57,7 +57,7 @@ class Election < ActiveRecord::Base
   end
   
   def quickvote?
   end
   
   def quickvote?
-    quickvote.to_i == 1
+    type == 'QuickVote'
   end
 
   def active?
   end
 
   def active?

Benjamin Mako Hill || Want to submit a patch?