aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/alert.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-11-27 09:02:42 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-11-27 09:02:42 +0000
commitdf1a036268e52396eca349b2803a5e05f891733c (patch)
tree6444374246c191af3fb174fcd8fc5e0edfa47840 /lib/mauve/alert.rb
parent70cdac24ef12f7c13cc7343a91b9d8f885be9b1b (diff)
Make sure nil event_types are no treated as strings.
Diffstat (limited to 'lib/mauve/alert.rb')
-rw-r--r--lib/mauve/alert.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mauve/alert.rb b/lib/mauve/alert.rb
index fb4587e..ed2b1dd 100644
--- a/lib/mauve/alert.rb
+++ b/lib/mauve/alert.rb
@@ -360,7 +360,7 @@ module Mauve
h.event += @attributes_before_save.keys.collect{|k| "#{k.to_s}: #{@attributes_before_save[k]} -> #{self.__send__(k)}"}.join(", ")
else
- h.event = self.update_type.upcase
+ h.event = (self.update_type || "UNKNOWN").upcase
end