From 516c28dc1ea9f5cae42ac0682593016c2eff75dc Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Wed, 5 Dec 2012 09:13:43 +0000 Subject: Added an update_type getter that returns "cleared" if the update type is nil. --- lib/mauve/alert.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/mauve/alert.rb b/lib/mauve/alert.rb index 72568b3..40d2f1c 100644 --- a/lib/mauve/alert.rb +++ b/lib/mauve/alert.rb @@ -208,6 +208,11 @@ module Mauve # @return [String] def detail; super || "_No detail set._" ; end + # + # The update type + # + def update_type; super || "cleared" ; end + # # Set the subject -- this clears the cached_alert_group. # -- cgit v1.2.1