]> projects.mako.cc - selectricity-live/blobdiff - app/models/election.rb
Add assert_cast_quickvote_succeeds/fails helper, and changed the fails helpers to...
[selectricity-live] / 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?