diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-11-27 09:02:42 +0000 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-11-27 09:02:42 +0000 |
commit | df1a036268e52396eca349b2803a5e05f891733c (patch) | |
tree | 6444374246c191af3fb174fcd8fc5e0edfa47840 /lib | |
parent | 70cdac24ef12f7c13cc7343a91b9d8f885be9b1b (diff) |
Make sure nil event_types are no treated as strings.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mauve/alert.rb | 2 |
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 |