diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-11-21 10:02:54 +0000 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-11-21 10:02:54 +0000 |
commit | 115c4e1d31d5f0e7dcf135c1e731598c0179246b (patch) | |
tree | 366dc7016e660b56c8b808f9c91653a66d36cbe5 /lib | |
parent | a920e18747c4685373a1fe10e7aac932ba84ad60 (diff) |
Fixed all_raised to properly compare the raised_at and cleared_at
times.
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 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 |