hide bounces in rejected email logs

This commit is contained in:
Régis Hanol 2016-05-23 21:42:07 +02:00
parent 32d253d484
commit b7e29eebe5

View File

@ -3,7 +3,7 @@ class IncomingEmail < ActiveRecord::Base
belongs_to :topic
belongs_to :post
scope :errored, -> { where.not(error: nil) }
scope :errored, -> { where("NOT is_bounce AND LENGTH(COALESCE(error,'')) > 0") }
end
# == Schema Information