method
deprecation_disallowed?
v6.1.3.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)
disallowed = ActiveSupport::Deprecation.disallowed_warnings
return false if explicitly_allowed?(message)
return true if disallowed == :all
disallowed.any? do |rule|
case rule
when String, Symbol
message.include?(rule.to_s)
when Regexp
rule.match?(message)
end
end
end