instance method
explicitly_allowed?
Ruby on Rails 7.2.3
Since v6.1.7.10 PrivateSignature
explicitly_allowed?(message)
No documentation comment.
Parameters
-
messagereq
Source
# File activesupport/lib/active_support/deprecation/disallowed.rb, line 39
def explicitly_allowed?(message)
allowances = @explicitly_allowed_warnings.value
return false unless allowances
return true if allowances == :all
message && Array(allowances).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 39
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Deprecation::Disallowed