diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2013-05-21 12:23:24 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2013-05-21 12:23:24 +0100 |
commit | 8bb164f71dc2b526e838b6ffb13c73ca641d5bbe (patch) | |
tree | f2c2f8841961d6a807e270a3c2b0fb414a634120 /lib/mauve | |
parent | ede4c121cc2ce4f91b0dc4476cadbf28a1a240b4 (diff) |
Added an extra to_a to force alert lookups for the person.
Diffstat (limited to 'lib/mauve')
-rw-r--r-- | lib/mauve/person.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mauve/person.rb b/lib/mauve/person.rb index fd8cf98..1158cbf 100644 --- a/lib/mauve/person.rb +++ b/lib/mauve/person.rb @@ -171,7 +171,7 @@ module Mauve # Suppress this notification if all the last N of the preceeding # notifications were of a equal or higher level. # - return previous_notifications.first(number).alerts.all? do |a| + return previous_notifications.first(number).alerts.to_a.all? do |a| AlertGroup::LEVELS.index(a.level) >= AlertGroup::LEVELS.index(level) end |