Class: Sidekiq::Middleware::I18n::Client
- Inherits:
-
Object
- Object
- Sidekiq::Middleware::I18n::Client
- Defined in:
- lib/sidekiq/middleware/i18n.rb
Overview
Get the current locale and store it in the message to be sent to Sidekiq.
Instance Method Summary collapse
Instance Method Details
#call(worker_class, msg, queue, redis_pool) ⇒ Object
5 6 7 8 |
# File 'lib/sidekiq/middleware/i18n.rb', line 5 def call(worker_class, msg, queue, redis_pool) msg['locale'] ||= I18n.locale yield end |