method
deprecation_disallowed?
v8.1.1 -
Show latest stable
- Class:
ActiveSupport::Deprecation::Disallowed
deprecation_disallowed?(message)private
No documentation available.
# File activesupport/lib/active_support/deprecation/disallowed.rb, line 26
def deprecation_disallowed?(message)
return false if explicitly_allowed?(message)
return true if disallowed_warnings == :all
message && disallowed_warnings.any? do |rule|
case rule
when String, Symbol
message.include?(rule.to_s)
when Regexp
rule.match?(message)
end
end
end