X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/efee1116c83bf5d42320b7c389560eff75a78b39..8e1a0d53f38d9d4298ac4b393558ff3345ddb045:/app/controllers/election_controller.rb diff --git a/app/controllers/election_controller.rb b/app/controllers/election_controller.rb index 5c13a81..ccbbafe 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