]> projects.mako.cc - selectricity/blobdiff - app/controllers/site_controller.rb
Modified QuickVote table to work by object type and not by the weird
[selectricity] / app / controllers / site_controller.rb
index 776832218c2b9a611e874a50564f3efa42805696..e26a3688997dd1ff67b4b817b44a345ddc8d4cfa 100644 (file)
@@ -3,7 +3,7 @@ class SiteController < ApplicationController
   model :user, :election, :account
 
   def index
-    @quickvotes = QuickVote.find(:all, ["quickvote = 1"]).sort {|a,b| b.enddate <=> a.enddate}[0..1]
+    @quickvotes = QuickVote.find(:all).sort {|a,b| b.enddate <=> a.enddate}[0..1]
     # if the person claims they are logged in
    
     if logged_in?

Benjamin Mako Hill || Want to submit a patch?