Class: Workarea::I18nClientMiddleware

Inherits:
Object
  • Object
show all
Defined in:
app/middleware/workarea/i18n_client_middleware.rb

Instance Method Summary collapse

Instance Method Details

#call(worker, msg, queue) ⇒ Object



3
4
5
6
# File 'app/middleware/workarea/i18n_client_middleware.rb', line 3

def call(worker, msg, queue, *)
  msg['locale'] = I18n.locale.to_s
  yield
end