aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/mauve/person.rb2
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