2
0

Fix Rails/WhereExists cop in app/lib (#28862)

This commit is contained in:
Matt Jankowski
2024-01-24 06:51:09 -05:00
committed by GitHub
parent 41c2af2270
commit 1290fede65
5 changed files with 7 additions and 11 deletions

View File

@@ -19,7 +19,7 @@ class SuspiciousSignInDetector
end
def previously_seen_ip?(request)
@user.ips.where('ip <<= ?', masked_ip(request)).exists?
@user.ips.exists?(['ip <<= ?', masked_ip(request)])
end
def freshly_signed_up?