From cddda56d7adb230d0fcb85ed0359d4fc23b7d3d5 Mon Sep 17 00:00:00 2001 From: Ryan Jones Date: Wed, 5 Sep 2012 08:34:13 -0600 Subject: [PATCH] remove some debugger code --- app/models/notice_observer.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/notice_observer.rb b/app/models/notice_observer.rb index 4bef58d..2fbb5ea 100644 --- a/app/models/notice_observer.rb +++ b/app/models/notice_observer.rb @@ -16,9 +16,8 @@ class NoticeObserver < Mongoid::Observer def should_notify? notice app = notice.app - a = app.notify_on_errs? && + app.notify_on_errs? && (Errbit::Config.per_app_email_at_notices && app.email_at_notices || Errbit::Config.email_at_notices).include?(notice.problem.notices_count) && app.notification_recipients.any? - a end end -- libgit2 0.21.2