class method
self.validate_fallbacks
Ruby on Rails 4.0.13
Since v3.0.20 Last seen in v4.2.9Signature
self.validate_fallbacks(fallbacks)
No documentation comment.
Parameters
-
fallbacksreq
Source
# File activesupport/lib/active_support/i18n_railtie.rb, line 89
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 89
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in I18n::Railtie