update i18n interpolation fallback to use renamed method
This commit is contained in:
parent
b1173950e4
commit
5372e86d55
1 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@ module I18n
|
|||
module Backend
|
||||
module InterpolationFallbacks
|
||||
def translate(locale, key, options = {})
|
||||
default = extract_string_or_lambda_default!(options) if options[:default]
|
||||
default = extract_non_symbol_default!(options) if options[:default]
|
||||
options.merge!(:default => default) if default
|
||||
|
||||
I18n.fallbacks[locale].each do |fallback|
|
||||
|
|
@ -18,4 +18,4 @@ module I18n
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue