Skip to content

Commit

Permalink
Fix failure on nil values in the data config [glebm#142](glebm#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
christianRakete committed Jun 25, 2015
1 parent d45bf37 commit ecb16eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/i18n/tasks/data/file_system_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ecb16eb

Please sign in to comment.