From 1e71c4e247eb8900a718b04113ffce9c1b8ad2f4 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Fri, 8 Nov 2024 09:23:52 -0500 Subject: [PATCH] Use enum-generated `IpBlock.severity...` scopes (#31210) --- app/helpers/registration_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/registration_helper.rb b/app/helpers/registration_helper.rb index 0f141c4359..002d167c05 100644 --- a/app/helpers/registration_helper.rb +++ b/app/helpers/registration_helper.rb @@ -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