aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/vendor
diff options
context:
space:
mode:
authorSven Fuchs <svenfuchs@artweb-design.de>2008-08-13 13:43:02 +0200
committerSven Fuchs <svenfuchs@artweb-design.de>2008-08-13 13:43:02 +0200
commit906e79396badfe9fb6b7f0457e835e5f1a9b09b2 (patch)
tree231a3d64affdf23e70ee3f60348dfb5040b26253 /activesupport/lib/active_support/vendor
parent78677cf6af339a6e23a93a45c905d6d1545ccc33 (diff)
downloadrails-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/lib/active_support/vendor')
-rw-r--r--activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb2
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