Skip to content

Commit

Permalink
update i18n interpolation fallback to use renamed method
Browse files Browse the repository at this point in the history
  • Loading branch information
jhass committed Aug 31, 2012
1 parent b117395 commit 5372e86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/i18n_interpolation_fallbacks.rb
Expand Up @@ -2,7 +2,7 @@ module I18n
module Backend module Backend
module InterpolationFallbacks module InterpolationFallbacks
def translate(locale, key, options = {}) 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 options.merge!(:default => default) if default


I18n.fallbacks[locale].each do |fallback| I18n.fallbacks[locale].each do |fallback|
Expand All @@ -18,4 +18,4 @@ def translate(locale, key, options = {})
end end
end end
end end
end end

0 comments on commit 5372e86

Please sign in to comment.