MrZYX 2011-02-12 21:31:14 +01:00
parent e76c5068d1
commit cd2d7db7b2

View file

@ -14,3 +14,13 @@ AVAILABLE_LANGUAGE_CODES.each do |c|
I18n.fallbacks[c.to_sym] = [c.to_sym, DEFAULT_LANGUAGE.to_sym, :en]
end
end
# Workaround for https://rails.lighthouseapp.com/projects/8994/tickets/5329-using-i18nwith_locale-in-actionmailer-raises-systemstackerror
module AbstractController
class I18nProxy
def initialize(i18n_config, lookup_context)
@i18n_config, @lookup_context = i18n_config, lookup_context
@i18n_config = @i18n_config.i18n_config if @i18n_config.respond_to?(:i18n_config)
end
end
end