]> projects.mako.cc - selectricity/blobdiff - app/models/election.rb
Fix validation of candidate names
[selectricity] / app / models / election.rb
index cf7bba58a2974f409a2828226d4dd43dc2f023ac..3baeef08e16fe95192f9b5810fe6b43c9de4fcba 100644 (file)
@@ -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?