instance method
deprecation_disallowed?
Ruby on Rails 7.0.10
Since v6.1.7.10 PrivateSignature
deprecation_disallowed?(message)
No documentation comment.
Parameters
-
messagereq
Source
# 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
Defined in activesupport/lib/active_support/deprecation/disallowed.rb line 26
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Deprecation::Disallowed