From 9acdafe87c1756afd97df53156ed611c93049c52 Mon Sep 17 00:00:00 2001 From: Ted Johansson Date: Fri, 27 Oct 2023 15:11:10 +0800 Subject: [PATCH] DEV: Remove deprecated EmailValidator.email_regex (#24129) The EmailValidator.email_regex method was moved to EmailAddressValidator.email_regex and marked for removal in 2.9.0. The method was proxied for backwards compatibility in plugins. This PR removes the method. --- lib/validators/email_validator.rb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/validators/email_validator.rb b/lib/validators/email_validator.rb index 81badf8e853..fffa3ec42b8 100644 --- a/lib/validators/email_validator.rb +++ b/lib/validators/email_validator.rb @@ -52,13 +52,4 @@ class EmailValidator < ActiveModel::EachValidator Rails.configuration.respond_to?(:developer_emails) && Rails.configuration.developer_emails.include?(value) end - - def self.email_regex - Discourse.deprecate( - "EmailValidator.email_regex is deprecated. Please use EmailAddressValidator instead.", - output_in_test: true, - drop_from: "2.9.0", - ) - EmailAddressValidator.email_regex - end end