class Roundhouse::Middleware::I18n::Server
Pull the msg locale out and set the current thread to use it.
Public Instance Methods
call(worker, msg, queue) { || ... }
click to toggle source
# File lib/roundhouse/middleware/i18n.rb, line 19 def call(worker, msg, queue) I18n.locale = msg['locale'] || I18n.default_locale yield ensure I18n.locale = I18n.default_locale end