From 8bb164f71dc2b526e838b6ffb13c73ca641d5bbe Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Tue, 21 May 2013 12:23:24 +0100 Subject: Added an extra to_a to force alert lookups for the person. --- lib/mauve/person.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.1