X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/2ba40f97b78f529984ff26c7c7d61c91d213e7b0..fd484b33a3920e0031007c5c2f1dec61913cbab5:/app/models/voter_notify.rb diff --git a/app/models/voter_notify.rb b/app/models/voter_notify.rb new file mode 100644 index 0000000..09f7899 --- /dev/null +++ b/app/models/voter_notify.rb @@ -0,0 +1,14 @@ +class VoterNotify < ActionMailer::Base + + def votestart(voter) + @subject = "[%s] Election In Progress!" % voter.election.name + @recipients = voter.email + @from = MAIL_CONFIG[:from] + @sent_on = Time.now + @body = { :voter => voter } + end + + def reminder(voter) + end + +end