FIX: Load fallback locales in Sidekiq jobs

This commit is contained in:
Gerhard Schlager 2015-09-18 18:21:27 +02:00
parent f37f6f7673
commit 619d5b1bc1

View file

@ -149,6 +149,7 @@ module Jobs
begin
RailsMultisite::ConnectionManagement.establish_connection(db: db)
I18n.locale = SiteSetting.default_locale
I18n.fallbacks.ensure_loaded!
begin
execute(opts)
rescue => e