diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-04-16 20:54:38 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-04-16 20:54:38 +0100 |
commit | 2cca449f78116aa02072e2e6c5036f63c2ec962b (patch) | |
tree | ba06e0f8d59a50847b5a7827f07b603e9793aa68 /lib/mauve/alert.rb | |
parent | ccd064ab3e7e140e851f84e9d1e7f3b987c7b9d1 (diff) |
Added time-fixation when processing "during" clauses, I think.
Diffstat (limited to 'lib/mauve/alert.rb')
-rw-r--r-- | lib/mauve/alert.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mauve/alert.rb b/lib/mauve/alert.rb index 5a3d181..706b0e3 100644 --- a/lib/mauve/alert.rb +++ b/lib/mauve/alert.rb @@ -400,12 +400,12 @@ module Mauve # Send a notification for this alert. # # @return [Boolean] Showing if an alert has been sent. - def notify + 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) + self.alert_group.notify(self, at) end end |