aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/track_mailer.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/track_mailer.rb b/app/models/track_mailer.rb
index 92bf93898..5e1c31974 100644
--- a/app/models/track_mailer.rb
+++ b/app/models/track_mailer.rb
@@ -46,6 +46,8 @@ class TrackMailer < ApplicationMailer
return false
end
for user in users
+ next if !user.should_be_emailed?
+
email_about_things = []
track_things = TrackThing.find(:all, :conditions => [ "tracking_user_id = ? and track_medium = ?", user.id, 'email_daily' ])
for track_thing in track_things