Skip to content

Commit

Permalink
Fix failure on nil values in the data config #142
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed Apr 2, 2015
1 parent a4fe3c9 commit 08609ff
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 08609ff

Please sign in to comment.