X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/ad088c1324d08a65f6f5336bedf7a88a8a8950e7..2fed9b6ceaf0953daf0f085f78520263ab0fa804:/app/controllers/election_controller.rb?ds=inline diff --git a/app/controllers/election_controller.rb b/app/controllers/election_controller.rb index 5c13a81..3d811e6 100644 --- a/app/controllers/election_controller.rb +++ b/app/controllers/election_controller.rb @@ -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