X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/ee6f1fad9951a2dc499e780db0d0867dac594f6a..9516096632eaa0015fa67613aaa0bed711481a72:/app/controllers/election_controller.rb?ds=inline diff --git a/app/controllers/election_controller.rb b/app/controllers/election_controller.rb index eff920f..1affe0f 100644 --- a/app/controllers/election_controller.rb +++ b/app/controllers/election_controller.rb @@ -152,6 +152,14 @@ class ElectionController < ApplicationController voter.destroy end + def remind_voter + voter_array= FullVoter.find(:all, :conditions => ["email = ?", params[:email]]) + voter_array.delete_if {|voter| voter.election.active == 0} + unless voter_array.empty? + VoterNotify.deliver_reminder(voter_array) + end + end + ## methods for computing and printing results #################################################################### def results