instance method
extract_string_default!
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
extract_string_default!(options)
No documentation comment.
Parameters
-
optionsreq
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/fallbacks.rb, line 55
def extract_string_default!(options)
defaults = Array(options[:default])
if index = find_first_string_default(defaults)
options[:default] = defaults[0, index]
defaults[index]
end
end
Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/fallbacks.rb line 55
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in I18n::Backend::Fallbacks