f53a3005f5
An alternative to DeprecatedConstantProxy which works more transparently with exceptions because it returns the object that the new constant refers to rather than a proxy. This is then compatible with `rescue OldException`.
471 B
471 B
-
Add ActiveSupport::Deprecation::DeprecatedConstantAccessor
Provides transparent deprecation of constants, compatible with exceptions. Example usage:
module Example include ActiveSupport::Deprecation::DeprecatedConstantAccessor deprecate_constant 'OldException', 'Elsewhere::NewException' end
Dominic Cleal
Please check 5-1-stable for previous changes.