I am using Active_job and sidekiq to send emails asynchronously. 

But my current_locale is lost when performing the sending. 

I set the I18n.locale by the url patterns of every request.


I used to use Sidekiq, which provide a plugin 
<https://github.com/mperham/sidekiq/blob/master/lib/sidekiq/middleware/i18n.rb> 
to 
store the current_locale, and use it when sending.

But I am now upgrading to Rails 4.2.1, ActiveJob seems it doesn't provide a 
solution like this.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to