aboutsummaryrefslogblamecommitdiffstats
path: root/activejob/lib/active_job/translation.rb
blob: 67e4cf4ab97161774a5e12d74a46598348e2417b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                            
module ActiveJob
  module Translation #:nodoc:
    extend ActiveSupport::Concern

    included do
      around_perform do |job, block, _|
        I18n.with_locale(job.locale, &block)
      end
    end
  end
end