Skip to content

Commit

Permalink
Merge pull request discourse#396 from kubabrecka/sidekiq_i18n_1
Browse files Browse the repository at this point in the history
apply locale in sidekiq jobs
  • Loading branch information
SamSaffron committed Mar 11, 2013
2 parents 46b33c3 + 3a8cfff commit 849066c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/jobs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def perform(opts={})
begin
Jobs::Base.mutex.synchronize do
RailsMultisite::ConnectionManagement.establish_connection(:db => db)
I18n.locale = SiteSetting.default_locale
execute(opts)
end
ensure
Expand Down

0 comments on commit 849066c

Please sign in to comment.