rails/activesupport/CHANGELOG.md
Dominic Cleal f53a3005f5
Add AS::Deprecation::DeprecatedConstantAccessor
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`.
2017-03-22 16:21:40 +00:00

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.