# File lib/globalize.rb, line 68 def set_fallbacks(locales) fallback_hash = HashWithIndifferentAccess.new locales.each do |key, value| fallback_hash[key] = value.presence || [key] end if locales.present? Thread.current[:fallbacks] = fallback_hash end