class method self.validate_fallbacks

Ruby on Rails 5.0.7.2

Since v3.0.20 Last seen in v5.0.7.2

Available in: v3.0.20 v3.1.12 v3.2.22.5 v4.0.13 v4.1.16 v4.2.11.3 v5.0.7.2

Signature

self.validate_fallbacks(fallbacks)

No documentation comment.

Parameters

fallbacks req
Source
# File activesupport/lib/active_support/i18n_railtie.rb, line 98
    def self.validate_fallbacks(fallbacks)
      case fallbacks
      when ActiveSupport::OrderedOptions
        !fallbacks.empty?
      when TrueClass, Array, Hash
        true
      else
        raise "Unexpected fallback type #{fallbacks.inspect}"
      end
    end

Defined in activesupport/lib/active_support/i18n_railtie.rb line 98 · View on GitHub · Improve this page · Find usages on GitHub

Defined in I18n::Railtie

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