Sha256: 0b90483665b14e2b69b6bce1b0392e227d77f7c49a9867360bf068d55e8eb707

Contents?: true

Size: 239 Bytes

Versions: 76

Compression:

Stored size: 239 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

76 entries across 76 versions & 7 rubygems

Version Path
activejob-6.1.7.10 lib/active_job/translation.rb
activejob-6.1.7.9 lib/active_job/translation.rb
activejob-6.1.7.8 lib/active_job/translation.rb
activejob-6.1.7.7 lib/active_job/translation.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activejob-6.1.6.1/lib/active_job/translation.rb
activejob-6.1.7.6 lib/active_job/translation.rb
activejob-6.1.7.5 lib/active_job/translation.rb
activejob-6.1.7.4 lib/active_job/translation.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activejob-6.1.6.1/lib/active_job/translation.rb
activejob-6.1.7.3 lib/active_job/translation.rb
activejob-6.1.7.2 lib/active_job/translation.rb
activejob-6.1.7.1 lib/active_job/translation.rb
activejob-6.0.6.1 lib/active_job/translation.rb
activejob-6.1.7 lib/active_job/translation.rb
activejob-6.0.6 lib/active_job/translation.rb
activejob-6.1.6.1 lib/active_job/translation.rb
activejob-6.0.5.1 lib/active_job/translation.rb
activejob-6.0.5 lib/active_job/translation.rb
activejob-6.1.6 lib/active_job/translation.rb
activejob-6.1.5.1 lib/active_job/translation.rb