method
explicitly_allowed?
rails latest stable - Class:
ActiveSupport::Deprecation::Disallowed
explicitly_allowed?(message)private
No documentation available.
# 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