]> projects.mako.cc - selectricity/blobdiff - app/models/election.rb
Improve consistency of XMLRPC error reporting. Now, all error conditions will raise...
[selectricity] / app / models / election.rb
old mode 100755 (executable)
new mode 100644 (file)
index cf7bba5..3baeef0
@@ -57,7 +57,7 @@ class Election < ActiveRecord::Base
   end
   
   def quickvote?
   end
   
   def quickvote?
-    type == 'QuickVote'
+    self.class == 'QuickVote'
   end
 
   def active?
   end
 
   def active?

Benjamin Mako Hill || Want to submit a patch?