lib/i18n/tasks/configuration.rb in i18n-tasks-0.5.1 vs lib/i18n/tasks/configuration.rb in i18n-tasks-0.5.2
- old
+ new
@@ -106,10 +106,10 @@
end
def config_for_inspect
# hide empty sections, stringify keys
Hash[config_sections.reject { |k, v| v.nil? || v.empty? }.map { |k, v|
- [k.to_s, v.respond_to?(:deep_stringify_keys) ? v.deep_stringify_keys : v] }].tap do |h|
+ [k.to_s, v.respond_to?(:deep_stringify_keys) ? v.deep_stringify_keys.to_hash : v] }].tap do |h|
h.each do |_k, v|
if v.is_a?(Hash) && v.key?('config')
v.merge! v.delete('config')
end
end