diff --git a/app/models/notice.rb b/app/models/notice.rb index eb0667e..4615eed 100644 --- a/app/models/notice.rb +++ b/app/models/notice.rb @@ -83,9 +83,6 @@ class Notice Mailer.err_notification(self).deliver end - def cache_last_notice_at - err.update_attributes(:last_notice_at => created_at) - end # Backtrace containing only files from the app itself (ignore gems) def app_backtrace @@ -93,11 +90,9 @@ class Notice end - protected - def should_notify? app.notify_on_errs? && (Errbit::Config.per_app_email_at_notices && app.email_at_notices || Errbit::Config.email_at_notices).include?(problem.notices_count) && app.watchers.any? end -- libgit2 0.21.2