From e68a33d5c49ccd88204f6aba234e05f34dc4ec61 Mon Sep 17 00:00:00 2001 From: Brennan Hitchcock <46493523+togabrennan@users.noreply.github.com> Date: Fri, 6 Oct 2023 12:51:45 -0400 Subject: [PATCH] Use appropriate deprecator --- lib/devise/rails/deprecated_constant_accessor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/devise/rails/deprecated_constant_accessor.rb b/lib/devise/rails/deprecated_constant_accessor.rb index f5cf01f89..0b400b062 100644 --- a/lib/devise/rails/deprecated_constant_accessor.rb +++ b/lib/devise/rails/deprecated_constant_accessor.rb @@ -28,7 +28,7 @@ def const_missing(missing_const_name) def deprecate_constant(const_name, new_constant, message: nil, deprecator: Devise.deprecator) class_variable_set(:@@_deprecated_constants, {}) unless class_variable_defined?(:@@_deprecated_constants) - class_variable_get(:@@_deprecated_constants)[const_name.to_s] = { new: new_constant, message: message, deprecator: deprecator } + class_variable_get(:@@_deprecated_constants)[const_name.to_s] = { new: new_constant, message: message, deprecator: Devise.deprecator } end end base.singleton_class.prepend extension