Sets the criteria used to identify deprecation messages which should be disallowed. Can be an array containing strings, symbols, or regular expressions. (Symbols are treated as strings). These are compared against the text of the generated deprecation warning.
Additionally the scalar symbol :all
may be used to treat all deprecations as disallowed.
Deprecations matching a substring or regular expression will be handled using the configured ActiveSupport::Deprecation.disallowed_behavior
rather than ActiveSupport::Deprecation.behavior
# File activesupport/lib/active_support/deprecation/disallowed.rb, line 21 def disallowed_warnings @disallowed_warnings ||= [] end
Returns the configured criteria used to identify deprecation messages which should be treated as disallowed.
© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.