From ecb16eb035fe74e2caf969932d2c1f69d61022c4 Mon Sep 17 00:00:00 2001 From: Christian Latsch Date: Thu, 25 Jun 2015 12:13:32 +0200 Subject: [PATCH] Fix failure on nil values in the data config [#142](https://github.com/glebm/i18n-tasks/issues/142) --- lib/i18n/tasks/data/file_system_base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/i18n/tasks/data/file_system_base.rb b/lib/i18n/tasks/data/file_system_base.rb index e324824f..b154b438 100644 --- a/lib/i18n/tasks/data/file_system_base.rb +++ b/lib/i18n/tasks/data/file_system_base.rb @@ -110,7 +110,7 @@ def t(key, locale) end def config=(config) - @config = DEFAULTS.deep_merge((config || {}).with_indifferent_access) + @config = DEFAULTS.deep_merge((config || {}).reject { |k, v| v.nil? }.with_indifferent_access) reload end