mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
b5248aca16
This commit adds `ActionView.deprecator` and replaces all usages of `ActiveSupport::Deprecation.warn` in `actionview/lib` with `ActionView.deprecator`. This commit also replaces a call to Ruby's `Module#deprecate_constant` with Rails' `DeprecatedConstantProxy`, so that its deprecation behavior can be configured using `ActionView.deprecator`. Additionally, this commit adds `ActionView.deprecator` to `Rails.application.deprecators` so that it can be configured via settings such as `config.active_support.report_deprecations`. This commit also removes a few defunct `assert_deprecated` calls that were not failing because they were nested in `assert_raises`, and the raised error prevented checking the deprecation. (One was mistakenly kept in |
||
---|---|---|
.. | ||
action_view | ||
action_view.rb |