Permalink
Browse files

compact computed fallbacks in case they contain a nil value

  • Loading branch information...
1 parent 8ff0038 commit 0318ba3545edb787d0f80a95dc5a94d994585e8f Sven Fuchs committed Jan 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/i18n/locale/fallbacks.rb
@@ -89,7 +89,7 @@ def compute(tags, include_defaults = true)
tags
end.flatten
result.push(*defaults) if include_defaults
- result.uniq
+ result.uniq.compact
end
end
end

0 comments on commit 0318ba3

Please sign in to comment.