# File lib/active_support/vendor/i18n-0.3.7/i18n/backend/helpers.rb, line 18 def wind_keys(hash, separator = nil, subtree = false, prev_key = nil, result = {}, orig_hash=hash) separator ||= I18n.default_separator hash.each_pair do |key, value| key = escape_default_separator(key, separator) curr_key = [prev_key, key].compact.join(separator).to_sym if value.is_a?(Hash) result[curr_key] = value if subtree wind_keys(value, separator, subtree, curr_key, result, orig_hash) else result[unescape_default_separator(curr_key)] = value end end result end