From 587520d0badb3cde6d2c9888a928ee664544cc24 Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Sat, 16 Aug 2014 10:32:03 -0700 Subject: [PATCH] better rdoc for i18n --- lib/sidekiq/middleware/i18n.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/sidekiq/middleware/i18n.rb b/lib/sidekiq/middleware/i18n.rb index c6c9fd6b..075e976f 100644 --- a/lib/sidekiq/middleware/i18n.rb +++ b/lib/sidekiq/middleware/i18n.rb @@ -1,3 +1,9 @@ +# +# Simple middleware to save the current locale and restore it when the job executes. +# Use it by requiring it in your initializer: +# +# require 'sidekiq/middleware/i18n' +# module Sidekiq::Middleware::I18n # Get the current locale and store it in the message # to be sent to Sidekiq.