]> projects.mako.cc - selectricity-live/blobdiff - app/models/election.rb
Add XMLRPC API for getting an individual quickvote object; refactor getting all quick...
[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?
-    quickvote.to_i == 1
+    type == 'QuickVote'
   end
 
   def active?

Benjamin Mako Hill || Want to submit a patch?