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.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mauve/alert_changed.rb b/lib/mauve/alert_changed.rb
index ebcbbda..0b0f72a 100644
--- a/lib/mauve/alert_changed.rb
+++ b/lib/mauve/alert_changed.rb
@@ -61,11 +61,11 @@ module Mauve
# @return [Boolean] true if it was relevant, false otherwise.
def was_relevant_when_raised?
- if :acknowledged == update_type.to_sym and true == was_relevant
+ if "acknowledged" == update_type and true == was_relevant
return true
end
- return was_relevant if update_type.to_sym == :raised
+ return was_relevant if update_type == "raised"
previous = AlertChanged.first(:id.lt => id,
:alert_id => alert_id,