aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/alert.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-04-17 21:26:49 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-04-17 21:26:49 +0100
commit4c99233f3b3112cd2be5ab6fd5d6e7c1c344406b (patch)
treeca5a7c3659b5aa3be4ecf40af95ef24870c09e7c /lib/mauve/alert.rb
parent3a579efcd3ea7e4362f7abeb4138c4087e6f13c1 (diff)
* The notification buffer is now used to store Alerts/AlertChangeds and times
to notify about, rather than notifications to be sent. * Fixed up the debug notifier a bit more. * Using the debug notifier extras more now.
Diffstat (limited to 'lib/mauve/alert.rb')
-rw-r--r--lib/mauve/alert.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/mauve/alert.rb b/lib/mauve/alert.rb
index 706b0e3..28079a2 100644
--- a/lib/mauve/alert.rb
+++ b/lib/mauve/alert.rb
@@ -401,12 +401,7 @@ module Mauve
#
# @return [Boolean] Showing if an alert has been sent.
def notify(at = Time.now)
- if self.alert_group.nil?
- logger.warn "Could not notify for #{self} since there are no matching alert groups"
- false
- else
- self.alert_group.notify(self, at)
- end
+ Server.notification_push([self, at])
end
# Acknowledge an alert