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