]> projects.mako.cc - selectricity/blobdiff - app/models/voter_notify.rb
merged in support for full election results
[selectricity] / app / models / voter_notify.rb
old mode 100755 (executable)
new mode 100644 (file)
index d9fded5..825786a
@@ -8,7 +8,12 @@ class VoterNotify < ActionMailer::Base
     @body = { :voter => voter }
   end
 
-  def reminder(voter)
+  def reminder(voter_array)
+    @subject = "Selectricity Election Reminder!"
+    @recipients = voter_array[0].email
+    @from = MAIL_CONFIG[:from]
+    @sent_on = Time.now
+    @body = { :voter_array => voter_array }
   end
 
 end

Benjamin Mako Hill || Want to submit a patch?