Fix Rails/WhereExists
cop in app/lib (#28862)
This commit is contained in:
parent
41c2af2270
commit
1290fede65
5 changed files with 7 additions and 11 deletions
|
@ -28,7 +28,7 @@ class DeliveryFailureTracker
|
|||
end
|
||||
|
||||
def available?
|
||||
!UnavailableDomain.where(domain: @host).exists?
|
||||
!UnavailableDomain.exists?(domain: @host)
|
||||
end
|
||||
|
||||
def exhausted_deliveries_days
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue