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

Dont save i18n locale if already set, fixes #1011

This commit is contained in:
Mike Perham 2013-06-19 08:33:28 -07:00
parent f0dafa632a
commit e753ff9615
3 changed files with 4 additions and 3 deletions

View file

@ -1,7 +1,8 @@
HEAD
-----------
- log rotation via USR2 didn't close the old logger [#1008]
- fix i18n support resetting saved locale when job is retried [#1011]
- log rotation via USR2 now closes the old logger [#1008]
2.12.4
-----------

View file

@ -3,7 +3,7 @@ module Sidekiq::Middleware::I18n
# to be sent to Sidekiq.
class Client
def call(worker_class, msg, queue)
msg['locale'] = I18n.locale
msg['locale'] ||= I18n.locale
yield
end
end

View file

@ -1,3 +1,3 @@
module Sidekiq
VERSION = "2.12.4"
VERSION = "2.12.5"
end