Added support for voting in QuickVotes.
[selectricity-live] / app / models / election.rb
index ba466b4b55928dac2f5291e0513d77b684a8c08d..0860a426ff137d84dc9184ac322725aec05553cf 100644 (file)
@@ -39,5 +39,9 @@ class Election < ActiveRecord::Base
   def activate!
     self.active = 1
   end
+  
+  def quickvote?
+    quickvote.to_i == 1
+  end
 
 end

Benjamin Mako Hill || Want to submit a patch?