diff options
Diffstat (limited to 'lib/mauve/notifier.rb')
-rw-r--r-- | lib/mauve/notifier.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/mauve/notifier.rb b/lib/mauve/notifier.rb index 67cd89b..acbbab4 100644 --- a/lib/mauve/notifier.rb +++ b/lib/mauve/notifier.rb @@ -41,7 +41,10 @@ module Mauve logger.warn "Could not notify for #{alert} since there are no matching alert groups" else alert.alert_group.notify(alert, at) - alert.save if alert.is_a?(Alert) + # + # This saves without callbacks. + # + alert.save! if alert.is_a?(Alert) and alert.original_attributes.has_key?("cached_alert_group") end end |