diff options
author | Sven Fuchs <svenfuchs@artweb-design.de> | 2008-08-13 13:43:02 +0200 |
---|---|---|
committer | Sven Fuchs <svenfuchs@artweb-design.de> | 2008-08-13 13:43:02 +0200 |
commit | 906e79396badfe9fb6b7f0457e835e5f1a9b09b2 (patch) | |
tree | 231a3d64affdf23e70ee3f60348dfb5040b26253 /activesupport | |
parent | 78677cf6af339a6e23a93a45c905d6d1545ccc33 (diff) | |
download | rails-906e79396badfe9fb6b7f0457e835e5f1a9b09b2.tar.gz rails-906e79396badfe9fb6b7f0457e835e5f1a9b09b2.tar.bz2 rails-906e79396badfe9fb6b7f0457e835e5f1a9b09b2.zip |
fix bug in I18n::Backend::Simple (A default array of non-existant keys returns the default array)
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb b/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb index ba7e11210a..530e9eca50 100644 --- a/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb +++ b/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb @@ -89,7 +89,7 @@ module I18n when Symbol then translate locale, default, options when Array then default.each do |obj| result = default(locale, obj, options.dup) and return result - end + end and nil end rescue MissingTranslationData nil |