]> projects.mako.cc - selectricity/blobdiff - app/controllers/election_controller.rb
fix bug with token generator
[selectricity] / app / controllers / election_controller.rb
index 5c13a8128cdfa6781240bc6b9937d0e533482afd..ccbbafe282bb2add4fc809c246f69a60b6bb04fb 100644 (file)
@@ -160,7 +160,7 @@ class ElectionController < ApplicationController
                                         :locals => { :page => 'review' }
 
     @election = Election.find(params[:id])
-    if @election.type == QuickVote
+    if @election.class  == QuickVote
       redirect_to(:controller => 'quickvote', :action => 'index', :ident => @election.id)
     end
       

Benjamin Mako Hill || Want to submit a patch?