Skip to content

Conversation

jonathanhefner
Copy link
Member

This commit adds ActiveSupport.deprecator and replaces all usages of ActiveSupport::Deprecation.warn in activesupport/lib with ActiveSupport.deprecator.

Additionally, this commit adds ActiveSupport.deprecator to Rails.application.deprecators so that it can be configured using e.g. config.active_support.report_deprecations.

This commit adds `ActiveSupport.deprecator` and replaces all usages of
`ActiveSupport::Deprecation.warn` in `activesupport/lib` with
`ActiveSupport.deprecator`.

Additionally, this commit adds `ActiveSupport.deprecator` to
`Rails.application.deprecators` so that it can be configured using e.g.
`config.active_support.report_deprecations`.
@jonathanhefner jonathanhefner force-pushed the active_support-deprecator branch from 7f4fd91 to 587c340 Compare October 25, 2022 20:06
@jonathanhefner jonathanhefner merged commit c097635 into rails:main Oct 26, 2022
jonathanhefner added a commit to jonathanhefner/rails that referenced this pull request Nov 9, 2022
Follow-up to rails#46330 and rails#46337.

This adds a deprecator arg to some `assert_not_deprecated` calls that
were missed in rails#46330 and rails#46337.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant