instance method explicitly_allowed?

Ruby on Rails edge

Since v6.1.7.10 Private — implementation detail, not part of the public API

Available in: v6.1.7.10 v7.0.10 v7.1.6 v7.2.4 v8.0.5.1 v8.1.4 edge

Signature

explicitly_allowed?(message)

No documentation comment.

Parameters

message req
Source
# File activesupport/lib/active_support/deprecation/disallowed.rb, line 40
        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 40 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::Deprecation::Disallowed

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close