Skip to content
  • Jonathan Hefner's avatar
    b2877794
    Add {Abstract,Action}Controller.deprecator · b2877794
    Jonathan Hefner authored
    This commit adds `AbstractController.deprecator` and
    `ActionController.deprecator`, and replaces all usages of
    `ActiveSupport::Deprecation.warn` in `actionpack/lib/action_controller`
    with the latter.
    
    Additionally, this commit adds `ActionController.deprecator` to
    `Rails.application.deprecators`.  Because `AbstractController` does not
    have its own railtie to do the same, `AbstractController` and
    `ActionController` use the same deprecator instance.  Thus, both can be
    configured via `Rails.application.deprecators[:action_controller]` or
    via config settings such as `config.active_support.report_deprecations`.
    b2877794
    Add {Abstract,Action}Controller.deprecator
    Jonathan Hefner authored
    This commit adds `AbstractController.deprecator` and
    `ActionController.deprecator`, and replaces all usages of
    `ActiveSupport::Deprecation.warn` in `actionpack/lib/action_controller`
    with the latter.
    
    Additionally, this commit adds `ActionController.deprecator` to
    `Rails.application.deprecators`.  Because `AbstractController` does not
    have its own railtie to do the same, `AbstractController` and
    `ActionController` use the same deprecator instance.  Thus, both can be
    configured via `Rails.application.deprecators[:action_controller]` or
    via config settings such as `config.active_support.report_deprecations`.
Loading