method

explicitly_allowed?

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Disallowed
explicitly_allowed?(message) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide 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
Register or log in to add new notes.