Sha256: d704f538e6f21a32bc33dd8f61e200c341f9469d484c5bdc298a194d8b4b4829

Contents?: true

Size: 242 Bytes

Versions: 33

Compression:

Stored size: 242 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

33 entries across 33 versions & 3 rubygems

Version Path
activejob-5.2.3.rc1 lib/active_job/translation.rb
activejob-5.2.2.1 lib/active_job/translation.rb
activejob-5.2.2 lib/active_job/translation.rb
activejob-5.2.2.rc1 lib/active_job/translation.rb
activejob-5.2.1.1 lib/active_job/translation.rb
activejob-5.2.1 lib/active_job/translation.rb
activejob-5.2.1.rc1 lib/active_job/translation.rb
activejob-5.2.0 lib/active_job/translation.rb
activejob-5.2.0.rc2 lib/active_job/translation.rb
activejob-5.2.0.rc1 lib/active_job/translation.rb
activejob-5.2.0.beta2 lib/active_job/translation.rb
activejob-5.2.0.beta1 lib/active_job/translation.rb
ruby-on-quails-0.1.0 activejob/lib/active_job/translation.rb