Use enum-generated `IpBlock.severity...` scopes (#31210)

pull/32157/head
Matt Jankowski 4 months ago committed by GitHub
parent 10c895dc84
commit 1e71c4e247
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -16,6 +16,6 @@ module RegistrationHelper
end
def ip_blocked?(remote_ip)
IpBlock.where(severity: :sign_up_block).containing(remote_ip.to_s).exists?
IpBlock.severity_sign_up_block.containing(remote_ip.to_s).exists?
end
end

Loading…
Cancel
Save