From 3790901e158237ae9155d359877c0a084a8f6e84 Mon Sep 17 00:00:00 2001 From: Alex Dunae Date: Mon, 11 Mar 2024 10:48:41 -0700 Subject: [PATCH] Fix deprecation warnings without Rails --- lib/validates_email_format_of.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/validates_email_format_of.rb b/lib/validates_email_format_of.rb index f742e32..8f8a7b4 100644 --- a/lib/validates_email_format_of.rb +++ b/lib/validates_email_format_of.rb @@ -299,7 +299,7 @@ def self.deprecation_warn(msg) if defined?(ActiveSupport::Deprecation) ActiveSupport::Deprecation.warn(msg) else - warn + warn(msg) end end end