]> projects.mako.cc - selectricity-live/blobdiff - app/controllers/election_controller.rb
improved dependency information
[selectricity-live] / app / controllers / election_controller.rb
index 5c13a8128cdfa6781240bc6b9937d0e533482afd..3d811e622112f32ab59b6c5fc075a5a21d9c60da 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
       
@@ -239,7 +239,7 @@ class ElectionController < ApplicationController
   end
   
   def delete_voter
-    voter = Voter.find( params[:id] )
+    voter = FullVoter.find( params[:id] )
     voter.destroy
   end
 

Benjamin Mako Hill || Want to submit a patch?