Skip to content

Commit f6e73e5

Browse files
Merge pull request #5628 from soartec-lab/fix/dedicated_active_support_deprecation
Fixed missing migration to dedicated deprecator
2 parents 9f80dc2 + f8f0351 commit f6e73e5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
* enhancements
44
* Removed deprecations warning output for `Devise::Models::Authenticatable::BLACKLIST_FOR_SERIALIZATION` (@soartec-lab)
5+
* Changed to use a separate deprecator inside the gem. because `rails` 7.1 will deprecate using the singleton `ActiveSupport::Deprecation.instance` (@soartec-lab, @etiennebarrie)
56

67
### 4.9.2 - 2023-04-03
78

lib/devise/rails/deprecated_constant_accessor.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def const_missing(missing_const_name)
2626
super
2727
end
2828

29-
def deprecate_constant(const_name, new_constant, message: nil, deprecator: ActiveSupport::Deprecation.instance)
29+
def deprecate_constant(const_name, new_constant, message: nil, deprecator: Devise.deprecator)
3030
class_variable_set(:@@_deprecated_constants, {}) unless class_variable_defined?(:@@_deprecated_constants)
3131
class_variable_get(:@@_deprecated_constants)[const_name.to_s] = { new: new_constant, message: message, deprecator: deprecator }
3232
end

0 commit comments

Comments
 (0)