Fixed all triggerable DeprecationWarnings. BE ON LOOKOUT FOR REGRESSIONS.
[selectricity] / app / models / election.rb
index cf7bba58a2974f409a2828226d4dd43dc2f023ac..3baeef08e16fe95192f9b5810fe6b43c9de4fcba 100644 (file)
@@ -57,7 +57,7 @@ class Election < ActiveRecord::Base
   end
   
   def quickvote?
-    type == 'QuickVote'
+    self.class == 'QuickVote'
   end
 
   def active?

Benjamin Mako Hill || Want to submit a patch?