Class: Faktory::Middleware::I18n::Client
- Inherits:
-
Object
- Object
- Faktory::Middleware::I18n::Client
- Defined in:
- lib/faktory/middleware/i18n.rb
Overview
Get the current locale and store it in the message to be sent to Faktory.
Instance Method Summary collapse
Instance Method Details
#call(payload, pool) ⇒ Object
12 13 14 15 16 |
# File 'lib/faktory/middleware/i18n.rb', line 12 def call(payload, pool) c = payload["custom"] ||= {} c['locale'] ||= ::I18n.locale yield end |