1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Reset locale to default, fixes #1415

This commit is contained in:
Mike Perham 2014-01-01 14:01:50 -08:00
parent a67f8427ac
commit 4116e2516d

View file

@ -14,7 +14,7 @@ module Sidekiq::Middleware::I18n
I18n.locale = msg['locale'] || I18n.default_locale
yield
ensure
I18n.locale = nil
I18n.locale = I18n.default_locale
end
end
end