aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/alert_changed.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mauve/alert_changed.rb')
-rw-r--r--lib/mauve/alert_changed.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/mauve/alert_changed.rb b/lib/mauve/alert_changed.rb
index a07dfa1..165ddff 100644
--- a/lib/mauve/alert_changed.rb
+++ b/lib/mauve/alert_changed.rb
@@ -60,10 +60,13 @@ module Mauve
# @author Matthew Bloch
# @return [Boolean] true if it was relevant, false otherwise.
def was_relevant_when_raised?
+
if :acknowledged == update_type.to_sym and true == was_relevant
return true
end
+
return was_relevant if update_type.to_sym == :raised
+
previous = AlertChanged.first(:id.lt => id,
:alert_id => alert_id,
:person => person)