Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Deprecators#disallowed_warnings= #46583

Merged

Commits on Nov 25, 2022

  1. Add Deprecators#disallowed_warnings=

    Although disallowed warnings are likely to be deprecator-specific, it
    can be useful to set this value once and have it applied to any
    deprecators that are added later.  For example, setting the value in an
    initializer via `config.active_support.disallowed_deprecation_warnings`
    and applying it to any third-party deprecators that are added later in
    the boot process.  Also, when using `:all`, it is more convenient to
    write `deprecators.disallowed_warnings = :all` instead of
    `deprecators.each { |deprecator| deprecator.disallowed_warnings = :all }`.
    jonathanhefner committed Nov 25, 2022
    Configuration menu
    Copy the full SHA
    ff38e2e View commit details
    Browse the repository at this point in the history