diff options
Diffstat (limited to 'lib/mauve/alert_changed.rb')
-rw-r--r-- | lib/mauve/alert_changed.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/mauve/alert_changed.rb b/lib/mauve/alert_changed.rb index 4dcba8e..40bcad1 100644 --- a/lib/mauve/alert_changed.rb +++ b/lib/mauve/alert_changed.rb @@ -20,9 +20,11 @@ module Mauve property :updated_at, DateTime - def to_s - "#<AlertChanged:#{id} of #{alert_id} for #{person} update_type #{update_type}>" + def inspect + "#<AlertChanged #{id}: alert_id #{alert_id}, for #{person}, update_type #{update_type}>" end + + alias to_s inspect belongs_to :alert @@ -134,7 +136,7 @@ module Mauve # Only remind if the time is right. # if DuringRunner.new(Time.now, alert, ¬ification.during).now? - Configuration.current.people[np].remind(alert, level) + Configuration.current.people[np].send_alert(level, alert) end self.remind_at = notification.remind_at_next(alert) save |