diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-06-17 18:06:46 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-06-17 18:06:46 +0100 |
commit | fd8256beea549a1650cd8fbe1f1d79c7b08a0772 (patch) | |
tree | b31d9118a12492a2d777d57b286fc889b5d718d4 /lib/mauve/alert_changed.rb | |
parent | e806fe922cf898a38c17ceeda4555e153943c999 (diff) |
Reinstated relevance.
Diffstat (limited to 'lib/mauve/alert_changed.rb')
-rw-r--r-- | lib/mauve/alert_changed.rb | 3 |
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) |