diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-07-25 12:36:29 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-07-25 12:36:29 +0100 |
commit | c2f49ef1b60f2d5fa20e9b3c9eb5875557dbec3b (patch) | |
tree | 77efd67321380ab2db682aaae83966a5c192880e | |
parent | 3d7e6f530eb4c90fec7bf92fb116c2d11dc160ee (diff) |
Clarify alert logic in a comment
-rw-r--r-- | app/models/track_mailer.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/track_mailer.rb b/app/models/track_mailer.rb index 1b37709b9..6901a834d 100644 --- a/app/models/track_mailer.rb +++ b/app/models/track_mailer.rb @@ -26,7 +26,11 @@ class TrackMailer < ApplicationMailer @body = { :user => user, :email_about_things => email_about_things, :unsubscribe_url => unsubscribe_url } end - # Send email alerts for tracked things. + # Send email alerts for tracked things. Never more than one email + # a day, nor about events which are more than a week old, nor + # events about which emails have been sent within the last two + # weeks. + # Useful query to run by hand to see how many alerts are due: # User.find(:all, :conditions => [ "last_daily_track_email < ?", Time.now - 1.day ]).size def self.alert_tracks |