aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2011-07-25 12:36:29 +0100
committerRobin Houston <robin.houston@gmail.com>2011-07-26 16:27:35 +0100
commitc1ba03debde8607cfa5c019dfd5960a898f6b9e7 (patch)
tree6f7023560d666ff5f7a223dca8d66812b4266c45
parentf74954ae7b4e21a5c4d0c82340967cba73da90c6 (diff)
Clarify alert logic in a comment
-rw-r--r--app/models/track_mailer.rb6
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