From 115c4e1d31d5f0e7dcf135c1e731598c0179246b Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Wed, 21 Nov 2012 10:02:54 +0000 Subject: Fixed all_raised to properly compare the raised_at and cleared_at times. --- lib/mauve/alert.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/mauve/alert.rb b/lib/mauve/alert.rb index 4e0ec67..055ada2 100644 --- a/lib/mauve/alert.rb +++ b/lib/mauve/alert.rb @@ -691,7 +691,7 @@ module Mauve # # @return [Array] def all_raised - all(:raised_at.not => nil, :order => [:raised_at.asc]) & (all(:cleared_at => nil) | all(:raised_at.gte => :cleared_at)) + all(:raised_at.not => nil, :order => [:raised_at.asc]) & (all(:cleared_at => nil) | all(:conditions => ['"raised_at" >= "cleared_at"'])) end # All alerts currently raised and unacknowledged -- cgit v1.2.1