From 906e79396badfe9fb6b7f0457e835e5f1a9b09b2 Mon Sep 17 00:00:00 2001 From: Sven Fuchs Date: Wed, 13 Aug 2008 13:43:02 +0200 Subject: fix bug in I18n::Backend::Simple (A default array of non-existant keys returns the default array) --- .../lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support/vendor/i18n-0.0.1') 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 -- cgit v1.2.3